Created
September 2, 2014 12:35
-
-
Save NaWer/e28d874cf17673d700e8 to your computer and use it in GitHub Desktop.
Delete duplicate row on 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
# Source : http://stackoverflow.com/questions/3311903/remove-duplicate-rows-in-mysql | |
ALTER IGNORE TABLE my_table_name ADD UNIQUE INDEX my_index_name (my_column_1, my_column_2, my_column_3, ... ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment