删除ORACLE数据库中重复的数据

declare
      maxrecords constant int:=599;
      i int :=1;
 begin
      for i in 1..maxrecords loop
      delete from sf_para_jlddidu where JILIANGDIAN  in
      (
      select JILIANGDIAN from
      sf_para_jlddidu group by JILIANGDIAN having count(*)>1
      )
      AND ROWNUM=1;
    end loop;
    dbms_output.put_line(' 成功录入数据! ');
    commit;
    end;
原文地址:https://www.cnblogs.com/madengwei/p/1324904.html