sql根据时间差查询数据

select * from DT_RunEexception t where t.Status ='0' and  t.CreateTime < = (select dateadd(n,-5,getdate()))
原文地址:https://www.cnblogs.com/zecVip/p/5735742.html