pl 2fsql loop example

Solutions on MaxInterview for pl 2fsql loop example by the best coders in the world

showing results for - "pl 2fsql loop example"
Rodrigo
07 Apr 2017
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)