數據庫查詢-查找與之前(昨天的)日期相比溫度更高的所有日期的 Id

答案: 1.與昨天對比的數據(如果昨天沒有數據,則不輸出) select distinct(w.Id) as Id from Weather w,Weather w1 where TO_DAYS(w.RecordDate)-TO_DAYS(w1.RecordDate) between 0 and 1 and w.Temperature>w1.Temperature 2.離今天最近的有數據的時間(如
相關文章
相關標籤/搜索