Created
July 10, 2013 17:06
-
-
Save thmsobrmlr/5968105 to your computer and use it in GitHub Desktop.
Find duplicate rows in MySQL (having same value for a column).
Replace 'column' and 'table' in statement with values specific to the case.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT column, COUNT(*) count FROM table GROUP BY column HAVING count > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment