Skip to content

Instantly share code, notes, and snippets.

@davesgonechina
Last active January 27, 2017 02:16
Show Gist options
  • Select an option

  • Save davesgonechina/4a502a59625a744dca8296b6dbb0f283 to your computer and use it in GitHub Desktop.

Select an option

Save davesgonechina/4a502a59625a744dca8296b6dbb0f283 to your computer and use it in GitHub Desktop.
MySQL dedup
CREATE TABLE new_table as
SELECT * FROM old_table WHERE 1 GROUP BY [column to remove duplicates by];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment