SQL>
SQL>
SQL> set serveroutput on
SQL> set echo on
SQL> BEGIN
2 FOR v_loopcounter IN 1..5 LOOP
3 DBMS_OUTPUT.PUT_LINE('Loop counter is ' || v_loopcounter);
4 END LOOP;
5 END;
6 /
Loop counter is 1
Loop counter is 2
Loop counter is 3
Loop counter is 4
Loop counter is 5
PL/SQL procedure successfully completed.
SQL>
SQL>
|