EXIT
The EXIT statement forces a loop to done unconditionally. Whenever an EXIT statement is encountered, the loop is done immediately and controls the passes to the next statement. An illustration is as shown below:
LOOP
...
IF credit_rating < 3 THEN
...
EXIT; -- exit loop immediately
END IF;
END LOOP; -- control resumes here
The later example represents that you cannot use the EXIT statement to complete a PL/SQL block:
BEGIN
...
IF credit_rating < 3 THEN
...
EXIT; -- illegal
END IF;
END;
Keep in mind that, the EXIT statement should be placed inside a loop. To complete the PL/SQL block before its normal end is reached; you can use the RETURN statement.