sql easy

    197. 上升的温度

    1. select w2.Id
    2. from weather w1 join weather w2
    3. on datediff(w2.recorddate, w1.recorddate)=1
    4. and w1.temperature < w2.temperature;

    MySQL 使用 DATEDIFF 来比较两个日期 (第一个减第二个) 类型的值.