select a.*
  from  [AutoNetwork_xxx] a inner join (select max(DataCreateOn) date from [AutoNetwork_xxx]) b 
  on a.DataCreateOn >dateadd(n,-20,b.date)  

得到最新的时间,并用最新时间减掉20分钟, 获取最新时间往前20分钟的数据

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-05-08
相关资源
相似解决方案