查询银行卡表,重复身份证,并对身份证进行分组。 SELECT * from 表名 a where (select count(*) from 表名 b where b.身份证=a.身份证 ) >1 ORDER BY 身份证