Posted By

flatearthcomms on 09/09/14


Tagged

mysql find duplicates


Versions (?)

Mysql find duplicate values in field


 / Published in: MySQL
 

URL: http://snippets.khromov.se/check-if-column-in-mysql-table-has-duplicate-values/

Mysql find duplicate values in field

  1. SELECT my_column, COUNT(*) as count
  2. FROM my_table
  3. GROUP BY my_column
  4. HAVING COUNT(*) > 1

Report this snippet  

You need to login to post a comment.