当前位置:   article > 正文

leetcode 196. Delete Duplicate Emails delete_leetcode 196. 删除重复的邮件

leetcode 196. 删除重复的邮件

题意:删除Email重复的行,保留Id最小的行,也就使每个Email只保留Id最小那个


思路:用删除语句进行删除


题目链接:https://leetcode.com/problems/delete-duplicate-emails/


  1. delete p1
  2. from Person as p1, Person as p2
  3. where p1.Id > p2.Id and p1.Email = p2.Email


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/799624
推荐阅读
相关标签
  

闽ICP备14008679号