https://leetcode-cn.com/problems/delete-duplicate-emails/
原题
select a.* from Person a,Person b
where a.Email=b.Email and a.Id>b.Id
以上第一步先查到要删除的
下面将它删除:
delete a from Person a,Person b
where a.Email=b.Email and a.Id>b.Id
https://leetcode-cn.com/problems/delete-duplicate-emails/
原题
select a.* from Person a,Person b
where a.Email=b.Email and a.Id>b.Id
以上第一步先查到要删除的
下面将它删除:
delete a from Person a,Person b
where a.Email=b.Email and a.Id>b.Id