Created
June 20, 2012 22:01
-
-
Save cam-gists/2962495 to your computer and use it in GitHub Desktop.
MySQL : Remove Duplicates
This file contains hidden or 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 FROM table1 | |
USING table1, table1 as vtable | |
WHERE (NOT table1.ID=vtable.ID) | |
AND (table1.field_name=vtable.field_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment