摘要: select dateadd(dd,-day(getdate()) + 1,getdate()) '当月起始时间' //查询当月起始时间 select dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate())+1, 0)) '当月结束时间' //查询当月结束 阅读全文
posted @ 2019-06-24 10:58 枫卍 阅读(1028) 评论(0) 推荐(0) 编辑