select name,mobile from [GeneShop].[dbo].[xx_member] 
where mobile in ( SELECT mobile FROM [GeneShop].[dbo].[xx_member]  
                    group by mobile having COUNT (mobile) <> 1)  
      order by mobile;

查询结果展示:

【SQL】查询数据库中某个字段有重复值出现的信息

 

相关文章:

  • 2021-11-03
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案