1.使用GOTO
例:
for REC in CUR loop
if CONDITION then
goto BREAKPOINT;
end if;
<<BREAKPOINT>>
NULL;
end loop;
扫描二维码关注公众号,回复:
1413900 查看本文章
注意NULL必须有;
2.使用EXCEPTION
例:
for REC in CUR loop
begin
if CONDITION then
raise myexception;
end if;
exception
when myexception then
NULL;
end;
end loop;