查询重复记录的SQL语句时间:2022-03-15 23:38:08 SELECT id, name FROM tableName WHERE name IN ( SELECT name FROM tableName GROUP BY name HAVING ( COUNT (name ) > 1 )) ORDER BY name 参考:http://blog.csdn.net/AppleBBS/archive/2010/03/08/5355755.aspx