首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle中continue的兑现方法

2012-08-01 
oracle中continue的实现方法1.使用GOTO例:for REC in CUR loop?if CONDITION then??? goto BREAKPOINTend

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;

热点排行