jxycms
8/3/2017 - 12:41 AM

count duplicate record in database

count duplicate record in database

select field1,field2,field3, count(*)
  from table_name
  group by field1,field2,field3
  having count(*) > 1