Created
April 14, 2020 08:38
-
-
Save banditelol/660a230dd3b94a4415c4fa9d161a5f18 to your computer and use it in GitHub Desktop.
Dedupe table by first backing it up to table_bak
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
DROP TABLE table_bak; | |
RENAME TABLE table TO table_bak; | |
CREATE TABLE table | |
SELECT DISTINCT * | |
FROM table_bak; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment