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