当前位置: 代码迷 >> 综合 >> 从数据库选取代表性的记录
  详细解决方案

从数据库选取代表性的记录

热度:26   发布时间:2024-01-22 05:29:28.0

 

首先获取系统当前时间,减去开始时间08:00,除10 得到时间间隔interval, 接着sql逻辑  select * from table where time=currenttime or time = currenttime-interval or time = current-2*interval.......;

  相关解决方案