时间加减时间段(年、月、日、分、秒)

--减 就写成-1
--月 update 表 set fhdate=DateAdd(M,-1,fhdate) where ...
select dateadd(M,2,getdate())

--天数
select dateadd(day,2,getdate())

--年
select dateadd(YY,2,getdate())
--分钟
select dateadd(mi,2,getdate())

--秒
select dateadd(ss,2,getdate())

原文地址:https://www.cnblogs.com/lyl6796910/p/3766535.html