Oracle PL/SQL loop循环详解(2)

SQL> --for..loop
SQL> begin
  2    for v_rlt in -3..3 loop
  3      dbms_output.put_line('v_rlt = '||v_rlt);
  4    end loop;
  5      dbms_output.put_line('FOR循环已经结束!');
  6  end;
  7  /
 
v_rlt = -3
v_rlt = -2
v_rlt = -1
v_rlt = 0
v_rlt = 1
v_rlt = 2
v_rlt = 3
FOR循环已经结束!
 
PL/SQL procedure successfully completed

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/fc9a8826fa142ab378d5fb2fdfe0f6de.html