标签: mysql sql duplicates
可能重复: MySQL Duplicate rows Displaying duplicate row numbers
如果表中没有任何主键列,有人可以告诉我如何在表中找到重复的行吗?
答案 0 :(得分:1)
Table列Field1, Field2:
Table
Field1, Field2
SELECT FIELD1, FIELD2 FROM Table GROUP BY FIELD1, FIELD2 HAVING COUNT(*)>1