Skip to content

Instantly share code, notes, and snippets.

@paulobunga
Created June 2, 2019 13:50
Show Gist options
  • Save paulobunga/65463350faba6dfabe7a06a24215451f to your computer and use it in GitHub Desktop.
Save paulobunga/65463350faba6dfabe7a06a24215451f to your computer and use it in GitHub Desktop.
MySQL Find duplicate entries and delete them

SELECT location, COUNT(location) FROM locations GROUP BY location HAVING COUNT(location) > 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment