Count how many duplicates you have in a table


/ Published in: MySQL
Save to your folder(s)

Count how many duplicates you have in a table


Copy this code and paste it in your HTML
  1. SELECT COUNT(alias.id) FROM (SELECT id, COUNT(id) AS cnt
  2. HAVING (cnt > 1)) as alias

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.