Skip to content

Instantly share code, notes, and snippets.

@boywhoroared
Created May 15, 2013 19:20
Show Gist options
  • Save boywhoroared/5586574 to your computer and use it in GitHub Desktop.
Save boywhoroared/5586574 to your computer and use it in GitHub Desktop.
Find duplicated values for a given field.
SELECT `field` FROM `table` GROUP BY `field` HAVING count(field) > 1;
-- Find duplicated values for the column `field`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment