赞
踩
SELECT count(*),column1,column2,...columnN FROM table1 GROUP BY column1,column2,...columnN HAVING count(*) > 1
count(*)表示重复几次,column表示进行重复筛选的字段,
原理是group by 和 having count(*)的运用,分组结果行数大于1就说明有重复数据-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。