sql获取上月第一天

SELECT Dateadd(mm, Datediff(mm, 0, GETDATE())-1, 0)

posted @ 2019-01-04 16:12  Little Feng  阅读(2135)  评论(0编辑  收藏  举报