Skip to content

Instantly share code, notes, and snippets.

@dashmug
Created June 24, 2013 20:07
Show Gist options
  • Save dashmug/5853141 to your computer and use it in GitHub Desktop.
Save dashmug/5853141 to your computer and use it in GitHub Desktop.
To remove duplicates in a MySQL table.
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