标签:val mon add detail char log 原创 http sql
select convert(varchar(10),dateadd(dd,number,dateadd(month,-1,getdate())),120) as dt
from master..spt_values
where type=‘P‘ and
dateadd(dd,number,dateadd(month,-1,getdate()))<=getdate()
---------------------
作者:a-b-d
来源:CSDN
原文:https://blog.csdn.net/a6622004/article/details/80911072
版权声明:本文为博主原创文章,转载请附上博文链接!
标签:val mon add detail char log 原创 http sql
原文地址:https://www.cnblogs.com/longLifeFrog/p/9855408.html