Skip to content

Instantly share code, notes, and snippets.

@mlantz
Created December 22, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlantz/046efebe26a204a906329b5b6b62209e to your computer and use it in GitHub Desktop.
Save mlantz/046efebe26a204a906329b5b6b62209e to your computer and use it in GitHub Desktop.
MySQL find doubles
SELECT name, COUNT(*) c FROM table GROUP BY name HAVING c > 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment