SQL查重 select A,count(A) from 表名 where 条件 group by A having(count(A))>1 --A列 ,A列某一个值重复的数量 --思路:先通过A分组,然后统计数量