Leetcode 196. 删除重复的电子邮箱(暴力、双表连接或者删最值)

2021-04-08 13:33:57 浏览数 (1)

代码语言:javascript复制
delete from person 
    where id not in(
    select id from(
        select min(id) id from 
        person
        group by email)t
    )

0 人点赞