1DECLARE
2 l_counter NUMBER := 0;
3BEGIN
4 LOOP
5 l_counter := l_counter + 1;
6 IF l_counter > 3 THEN
7 EXIT;
8 END IF;
9 dbms_output.put_line( 'Inside loop: ' || l_counter ) ;
10 END LOOP;
11 -- control resumes here after EXIT
12 dbms_output.put_line( 'After loop: ' || l_counter );
13END;Code language: SQL (Structured Query Language) (sql)