数据库
首页 > 数据库> > 3.5 plsql循环

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;

标签:begin,dbms,end,plsql,number,3.5,loop,pnum,循环
来源: https://www.cnblogs.com/zl-programmer/p/15321126.html