Created
April 12, 2017 07:59
-
-
Save escuccim/e8c49993616468e6305e062e4d5765b2 to your computer and use it in GitHub Desktop.
MySQL Query to delete duplicate rows
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
DELETE n1 FROM names n1, names n2 WHERE n1.id > n2.id AND n1.name = n2.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment