表: Weather

+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| id            | int     |
| recordDate    | date    |
| temperature   | int     |
+---------------+---------+
在 SQL 中,id 是该表的主键。
该表包含特定日期的温度信息

找出与之前(昨天的)日期相比温度更高的所有日期的 id 。

返回结果 无顺序要求 。

结果格式如下例子所示。


197. 上升的温度_MySQL

# Write your MySQL query statement below
select a.id
from weather as a cross join weather as b
  on datediff(a.recordDate, b.recordDate)=1
where a.Temperature>b.Temperature
输入:
Weather 表:

又是一道数据库的题。