Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Find duplicate field values in MySQL
SELECT email_address, COUNT(email_address) AS occurrences
FROM users
GROUP BY email_address
HAVING occurrences > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment