Created
October 7, 2014 06:39
-
-
Save mamoo/33650f7ade2dd588c038 to your computer and use it in GitHub Desktop.
Find duplicate column value in DB
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 col_1, COUNT(*) FROM table GROUP BY col_1 HAVING COUNT(*) > 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment