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;