谢谢~!我刚搜了一下,发现还有种办法:
delete cz where (c1,c10) in (select c1,c10 from cz group by c1,c10 having count(*)>1) and rowid not in
(select min(rowid) from cz group by c1,c10 having count(*)>1);
最初由 coohoo 发布
[B]谢谢~!我刚搜了一下,发现还有种办法:
delete cz where (c1,c10) in (select c1,c10 from cz group by c1,c10 having count(*)>1) and rowid not in
(select min(rowid) from cz group by c1,c10 having count(*)>1); [/B]
这些方法效率都是很低的
建议还是使用oracle 的分析函数比较快一点的