Program to perform EXIT statement in PL/SQL

 Program to perform EXIT statement:

DECLARE
 A int;
 BEGIN
 A:=10;
 LOOP
    DBMS_OUTPUT.PUT_LINE(A);
    A:=A+10;
    IF A>100 THEN
      EXIT;
    END IF;
 END LOOP;
END;


Output:
Output

Previous
Next Post »