Du kan bruge RETURN
[email protected]> set serveroutput on
[email protected]> !cat test.sql
BEGIN
IF 1 = 1 THEN
DBMS_OUTPUT.PUT_LINE('ABOUT TO EXIT');
RETURN;
END IF;
DBMS_OUTPUT.PUT_LINE('DID NOT EXIT');
END;
[email protected]> @test
8 /
ABOUT TO EXIT
PL/SQL procedure successfully completed.
[email protected]>