标签:ar sp on bs ad nbsp sql br har
--月初
select convert(varchar(10),dateadd(day,-(day(getdate()) -1),getdate()) ,120)
--月末
select convert(varchar(10),dateadd(day,-1,convert(varchar(8),dateadd(month,1,getdate()),120)+‘01 23:59:59‘),120)
标签:ar sp on bs ad nbsp sql br har
原文地址:http://www.cnblogs.com/smallman/p/4158971.html