📅  最后修改于: 2022-03-11 15:05:23.804000             🧑  作者: Mango
declare @thirtydaysago datetime
declare @now datetime
set @now = getdate()
set @thirtydaysago = dateadd(day,-30,@now)
select @now, @thirtydaysago