Thursday, September 19, 2013

Selecting and displaying duplicates in a MySQL DB:

SELECT *
FROM table
WHERE column IN (
 SELECT column
 FROM table
 GROUP BY column
 HAVING (COUNT(column) > 1)
)

No comments:

Post a Comment