Find duplicate mysql field vale

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

Prints out a list of any field containing duplicates with count

Copy this code and paste it in your HTML
  1. SELECT name, COUNT(*) c FROM table GROUP BY name HAVING c > 1;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.