leetcode-Database-196 |删除重复的电子邮箱

原题

在这里插入图片描述

分析

同表关联

代码

delete a.* from 
person a,person b 
where a.email=b.email
and a.id>b.id

猜你喜欢

转载自blog.csdn.net/qq_38173650/article/details/114693703