Oracle重复数据删除

在Oracle数据库中,删除重复数据,大都会使用如下方法:

delete from tbl a 
where rowid<>(select max(b.rowid) 
from tbl b where a.col1=b.col1 and a.col2 = b.col2);

  

你可能感兴趣的:(Oracle重复数据删除)