也是有两种解法
sqlcreate table Person(
id int primary key,
email varchar(20)
) ;
show tables;
解法一:临时表
SQLcreate table weather(
id int primary key ,
recordData date ,
temperature int
);
show tables;
select * from weather;
insert into weather values (1,'2015-01-01',10),(2,'2015-01-02',25),(3,'2015-01-03',20),(4,'2015-01-04',30);
select a.id
from weather as a,weather as b
where a.temperature > b.temperature
and datediff(a.recordData,b.recordData) = 1;
解法二:自连接
sqlselect a.id
from weather as a join weather as b
on datediff(a.recordData,b.recordData) = 1
where a.temperature > b.temperature ;
When I’m lost in Chinese cities I stop a taxi and give them my destination written on a piece of paper (in Chinese characters, supplied by a friend or hotel staff). Taxis are relatively cheap in China.
中文翻译
当我在中国的城市迷路时,我会拦下一辆出租车,然后给司机看一张纸上写着我的目的地的纸条(用中文字符书写,由朋友或酒店工作人员提供)。在中国,出租车相对便宜。