sql时间天数操作

select dateadd(m,-1,getdate()) 一个月前

select dateadd(d,-1,getdate()) 一个天前

原文地址:https://www.cnblogs.com/zylong/p/4632720.html