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;
上一篇:C++ Primer 学习笔记_46_STL实践与分析(20)--容器特有的算法


下一篇:axios