sql根据时间差查询数据 select * from DT_RunEexception t where t.Status ='0' and t.CreateTime < = (select dateadd(n,-5,getdate()))