SQL: 查找数据库某表中的重复数据行 group by及 having的用法

select  columnA,columnB,columnC,columnD,columnE,columnF, COUNT(columnA)  
from tableA 
where ... 
group by columnA,columnB,columnC,columnD,columnE,columnF
having COUNT(columnA)>1

 

posted @ 2021-08-03 17:03  katesharing  阅读(249)  评论(0)    收藏  举报