Home  >  Article  >  Database  >  Oracle存储过程中的break和continue

Oracle存储过程中的break和continue

WBOY
WBOYOriginal
2016-06-07 14:54:351858browse

无详细内容 无 break可用exit代替。loop...exit when ...;...end loop;continue和用自定义异常代替。loopbegin...raise my_ex;...exceptionwhen others then null;end;end loop;

break可用exit代替。
loop
...
exit when ...;
...
end loop;
continue和用自定义异常代替。
loop
begin
...
raise my_ex;
...
exception
when others then null;
end;
end loop; 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn