For each reverse : For Loop « PL SQL « Oracle PL / SQL
- Oracle PL / SQL
- PL SQL
- For Loop
For each reverse
SQL> declare
2 i number;
3 begin
4 FOR i IN REVERSE 1..5
5 LOOP
6 dbms_output.put_line(i);
7 END LOOP;
8 end;
9 /
5
4
3
2
1
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL>
Related examples in the same category