ITeye博客

oracle有continue的用法

winzenghua · 2009-07-10 14:07 · Markdown

oracle没有continue的用法,那么如何退出本次循环,而不退出整个循环呢?
goto是一种方法吗,

create or replace procedure dd is
i pls_integer;
begin
i:=0;
loop
<<top>>

i:=i+1;
if i>10 then
exit;
end if;

if i>5 then
goto top;
end if;

dbms_output.put_line(i);
end loop;
end;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。