從數據庫選取代表性的記錄

 

首先獲取系統當前時間,減去開始時間08:00,除10 得到時間間隔interval, 接着sql邏輯  select * from table where time=currenttime or time = currenttime-interval or time = current-2*interval.......;

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