delete from tbl 
where rowid not in (select min(rowid) from tbl group by colb);

解决方案 »

  1.   

    select aa,bb,cc from (select rownum rrr, abc.* from abc) xwhere rrr in(select min(rrr) from (select rownum rrr, abc.* from abc) where x.bb=bb)试试,再简单的我不会写了,好像应该用rank什么的
      

  2.   

    或者
    delete from tbl 
    where rowid not in (select max(rowid) from tbl group by colb);
      

  3.   

    delete from abc a where rowid != (select max(rowid) from abc b where a.bb = b.bb)