select shopID from shop where ShopName in( select ShopName from shop group by ShopName having count(*)>1 )

 

通过这种方法获得shopName重复的行数。

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-12-18
  • 2021-11-17
猜你喜欢
  • 2021-10-12
  • 2021-08-23
  • 2021-12-04
  • 2022-12-23
  • 2021-09-24
相关资源
相似解决方案