学习时间:
2023年2月5日
题目描述:




题解分享:
# 作 者 : 繁 华 倾 夏
# 力扣(LeetCode):607. 销售员
# MySQL 数据库
select a.ID, a.date
from weather as a cross join weather as b
on timestampdiff(day, a.date, b.date) = -1
where a.temp > b.temp;
该文章是繁华倾夏在力扣上的题解分享,涉及SQL查询,使用timestampdiff函数查找weather表中日期相差一天且温度降低的记录,ID和date信息被提取出来。




# 作 者 : 繁 华 倾 夏
# 力扣(LeetCode):607. 销售员
# MySQL 数据库
select a.ID, a.date
from weather as a cross join weather as b
on timestampdiff(day, a.date, b.date) = -1
where a.temp > b.temp;
131
160

被折叠的 条评论
为什么被折叠?