[摘录]
删除SQL重复行 [ 作者:zhangyanjun ]
查找重复行
SELECT period,represnum,artgrpnum, count(*)
FROM d_kpigrade
GROUP BY period,represnum,artgrpnum
HAVING count(*) > 1
删除重复行
set rowcount 1
delete from d_kpigrade
where period='M0602' AND represnum='7200' AND artgrpnum='KPI4'