-1

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?

Community
  • 1
  • 1
Biswajit das
  • 99
  • 1
  • 11

1 Answers1

1

For Table with columns Field1, Field2:

SELECT FIELD1, FIELD2
FROM Table
GROUP BY FIELD1, FIELD2
HAVING COUNT(*)>1
alex
  • 3,682
  • 3
  • 21
  • 22