![](https://img.haomeiwen.com/i9049859/8bca2304651df916.png)
select t2.Id Id
from Weather t1
join Weather t2
on DATEDIFF(t2.RecordDate, t1.RecordDate) = 1
where t2.Temperature > t1.Temperature
![](https://img.haomeiwen.com/i9049859/fc955e9250cbbfa6.png)
delete p1 from (person as p1 left join person as p2 on p1.email = p2.email) where p1.id > p2.id ;
select t2.Id Id
from Weather t1
join Weather t2
on DATEDIFF(t2.RecordDate, t1.RecordDate) = 1
where t2.Temperature > t1.Temperature
delete p1 from (person as p1 left join person as p2 on p1.email = p2.email) where p1.id > p2.id ;
本文标题:09-30(删除重复邮箱-mysql)
本文链接:https://www.haomeiwen.com/subject/qwvpuktx.html
网友评论