I am have a table containing 63 columns.
I am looking to find exact duplicate rows (all 63 columns) from this table, in mysql.
How do I achieve this?
There is no easy way to handle this as far as I know. One option would just be a brute force GROUP BY
query:
SELECT col1, col2, ..., col63
FROM yourTable
GROUP BY col1, col2, ..., col63
HAVING COUNT(*) > 1;
The above query would generate one record per offending duplication. If you wanted to see how many records were in duplicate, you could add COUNT(*)
to the select clause.