日期:2014-05-16  浏览次数:20379 次

oracle中continue的实现方法

1.使用GOTO

例:

for REC in CUR loop

?

if CONDITION then

??? goto BREAKPOINT;

end if;

?

<<BREAKPOINT>>

NULL;

end loop;

?

注意NULL必须有;

?

2.使用EXCEPTION

例:

for REC in CUR loop

?

begin?

? if CONDITION then

?? ?? raise myexception;

? end if;

exception

? when myexception?then

? ?? NULL;

end;

?

end loop;