22,207
社区成员
发帖
与我相关
我的任务
分享
where datediff(month,[Time],getdate())>=6
delete from dingshi where convert(datetime,[Time]) <=dateadd(month,-6,getdate())
where convert(varchar(50),dateadd(month,-6,[Time]),23)<=convert(varchar(50),dateadd(month,-6,getdate()),23)