oracle 删除重复行

来源:互联网 发布:淘宝一件代发客人下单 编辑:程序博客网 时间:2024/05/29 09:47
delete from t_productbilldetailvods nologging where detailbillid in (select detailbillid from t_productbilldetailvods group by detailbillid having count(detailbillid) > 1) and rowid not in (select min(rowid) from t_productbilldetailvods group by detailbillid having count(detailbillid) > 1);
原创粉丝点击