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

 

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章