Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能的重复: MySQL 重复行 显示重复的行号
如果表中没有任何主键列,谁能告诉我如何在表中查找重复行?
对于Table列Field1, Field2:
Table
Field1, Field2
SELECT FIELD1, FIELD2 FROM Table GROUP BY FIELD1, FIELD2 HAVING COUNT(*)>1