3.5 plsql循环

2021/9/22 19:10:01

本文主要是介绍3.5 plsql循环,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

declare

pnum number := 1; str Varchar2(8):='你好'; begin while pnum < 10 loop dbms_output.put_line(str||pnum); pnum := pnum + 1; end loop; end; ---------- declare pnum number := 1; begin loop exit when pnum > 10; dbms_output.put_line(pnum); pnum:=pnum+1; end loop; end; --------- declare pnum number := 1; begin for pnum in 1 .. 10 loop dbms_output.put_line(pnum); end loop; end;

这篇关于3.5 plsql循环的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程