SELECT count(*),column1,column2,...columnN FROM table1 GROUP BY column1,column2,...columnN HAVING count(*) > 1
count(*)表示重复几次,column表示进行重复筛选的字段,
原理是group by 和 having count(*)的运用,分组结果行数大于1就说明有重复数据
SELECT count(*),column1,column2,...columnN FROM table1 GROUP BY column1,column2,...columnN HAVING count(*) > 1
count(*)表示重复几次,column表示进行重复筛选的字段,
原理是group by 和 having count(*)的运用,分组结果行数大于1就说明有重复数据