Created
November 15, 2015 05:19
-
-
Save joaoBeno/c1b465876dd526120e08 to your computer and use it in GitHub Desktop.
Some util mysql snippets
This file contains 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 COUNT(id) AS total,`name` FROM table | |
GROUP BY `name` HAVING (total > 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment