【发布时间】:2010-05-21 15:06:07
【问题描述】:
我正在使用 Oracle 9i,我想在 PL/SQL 中使用 continue 语句或其等效语句。在 oracle 9i 中是否有任何称为“继续”的关键字。如果没有,请告诉我解决方案。
【问题讨论】:
-
看来这个问题与stackoverflow.com/questions/177752/…重复
我正在使用 Oracle 9i,我想在 PL/SQL 中使用 continue 语句或其等效语句。在 oracle 9i 中是否有任何称为“继续”的关键字。如果没有,请告诉我解决方案。
【问题讨论】:
CONTINUE 语句是在 Oracle 11G 中添加的,它在以前的版本中不可用。一个解决方案是使用 GOTO:
loop
if something then
goto continue_label;
end if;
...
<<continue_label>> null;
end loop;
【讨论】: