• 查询当天:select * from [TABLE] where DateDiff(dd, [dateadd], getdate()) = 0
  • 查询 24 小时内:select * from [TABLE] where DateDiff(hh, [dateadd], getdate()) < 24>