For循环(数值型)

create or replace procedure sz_test(start_in int,end_in int) is
begin
for int_a in start_in..end_in
loop
dbms_output.put_line(int_a);
end loop;
end sz_test;

SQL> set serveroutput on
SQL> exec xsxxgl_test_3(11,15)
 
11
12
13
14
15
 
PL/SQL procedure successfully completed

猜你喜欢

转载自563432906.iteye.com/blog/2225053