SELECT * FROM `表名1` WHERE 字段1 in(select sn from 表名1 group by 字段1 having count(*)>1) SELECT sn ,count(*) as a FROM `表名` group by sn having a>1