SQL>
SQL> set serveroutput on
SQL>
SQL> DECLARE
2
3 start_period_number pls_integer := 1;
4 end_period_number pls_integer := 10;
5 current_period pls_integer := 5;
6
7 BEGIN
8
9 dbms_output.put_line('forward loop...');
10 FOR loop_counter IN 1 .. 10
11 LOOP
12 dbms_output.put_line(loop_counter);
13 -- ... executable statements ...
14 END LOOP;
15 END;
16 /
forward loop...
1
2
3
4
5
6
7
8
9
10
PL/SQL procedure successfully completed.
|