Mega Code Archive

 
Categories / Oracle PLSQL Tutorial / PL SQL Statements
 

Nested three level LOOP

SQL> SQL> set serveroutput on SQL> set echo on SQL> SQL>    BEGIN   2          FOR I = 5 to 7 LOOP   3               FOR J = 1 to 31 LOOP   4                    FOR K = 1 to 12 LOOP   5                         NULL;   6                    END LOOP;   7              END LOOP;   8         END LOOP;   9    END;  10  /         FOR I = 5 to 7 LOOP               * ERROR at line 2: ORA-06550: line 2, column 15: PLS-00103: Encountered the symbol "=" when expecting one of the following: in SQL>