mysql查询重复项

select Email from (
select Email, count(Email) as num from Person
group by Email )
as result
where num>1

select Email, count(Email) as num from Person group by Email
#创建一个辅助表,并使用Email 内容对其进行归类存储

select Email from 辅助表 as result where num>1

#条件查询获取重复项

参考:https://leetcode-cn.com/problems/duplicate-emails/solution/cha-zhao-zhong-fu-de-dian-zi-you-xiang-by-leetcode/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-12-18
  • 2022-01-13
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案