Created
June 24, 2013 20:07
-
-
Save dashmug/5853141 to your computer and use it in GitHub Desktop.
To remove duplicates in a MySQL table.
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
ALTER IGNORE TABLE table ORDER BY address ASC ADD UNIQUE KEY 'address' (`address`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment