1. 只有一个字段重复
可分组后选择记录大于1的就是重复项
SELECT * FROM table1 where 字段 in (SELECT 字段 FROM table1 group by 字段 having count(*)>1)
2. 两个或两个以上字段重复
如果两个字段都是文本可兼容可以如1方法用连接法替代它
SELECT * FROM table1 where 字段1+字段2 in (SELECT字段1+字段2 FROM table1 group by字段1+字段2 having count(*)>1)
上面方法不太通用,可用下面的方法更合适
Select A.* from table A, (select字段1, 字段2 from table1 group by字段1, 字段2 having count(*)>1) B Where A.字段1=B.字段1 and A.字段2=B.字段2