Concate values before output
SQL>
SQL> -- Your first FOR loop.
SQL> set echo on
SQL> BEGIN
2 FOR i IN 1..5 LOOP
3 DBMS_OUTPUT.PUT_LINE('Loop counter is ' || i);
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.
Related examples in the same category