leetcode 196. Delete Duplicate Emails 删除重复的电子邮箱 mySQL (delete where group order)

# Write your MySQL query statement below

# First method
DELETE p1
FROM Person p1, Person p2
WHERE p1.Email = p2.Email AND
p1.Id > p2.Id

猜你喜欢

转载自blog.csdn.net/huhehaotechangsha/article/details/80887176