nix, shell, perl, php, mysql and mac os x tips and tricks

Thursday, November 13, 2003

Check for, and count duplicate records in MySQL

SELECT field, count( field )
FROM table
GROUP BY field
HAVING Count( field ) > 1 LIMIT 0 , 30

No comments:

Post a Comment