Created
May 15, 2013 19:20
-
-
Save boywhoroared/5586574 to your computer and use it in GitHub Desktop.
Find duplicated values for a given field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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