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;
本文介绍在Oracle PL/SQL中如何使用goto语句实现循环控制,具体展示了如何跳过当前循环而不终止整个循环的过程。通过示例代码解释了在特定条件满足时如何返回循环的开始。
978

被折叠的 条评论
为什么被折叠?



