Py学习  »  DATABASE

09-30(删除重复邮箱-mysql)

隐约喜欢萌萌哒 • 3 年前 • 242 次点击  
image.png
select t2.Id Id
from Weather t1
join Weather t2
on DATEDIFF(t2.RecordDate, t1.RecordDate) = 1
where t2.Temperature > t1.Temperature
image.png
delete p1 from (person as p1 left join person as p2 on p1.email = p2.email) where p1.id > p2.id ;
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/99103
 
242 次点击