Possible Duplicate:
MySQL Duplicate rows
Displaying duplicate row numbers
Can anybody tell me how to find duplicate rows in a table if there is not any primary key column in the table?
Possible Duplicate:
MySQL Duplicate rows
Displaying duplicate row numbers
Can anybody tell me how to find duplicate rows in a table if there is not any primary key column in the table?
For Table
with columns Field1, Field2
:
SELECT FIELD1, FIELD2
FROM Table
GROUP BY FIELD1, FIELD2
HAVING COUNT(*)>1