4

可能重复:
Oracle 10g PL/SQL 中的“CONTINUE”关键字

我正在使用 Oracle 9i,我想在 PL/SQL 中使用 continue 语句或其等效语句。在 oracle 9i 中是否有任何称为“继续”的关键字。如果没有,请告诉我解决方案。

4

1 回答 1

8

CONTINUE 语句是在 Oracle 11G 中添加的,它在以前的版本中不可用。一个解决方案是使用 GOTO:

loop
   if something then
      goto continue_label;
   end if;
   ...
   <<continue_label>> null;
end loop;
于 2010-05-21T15:21:06.787 回答