I\'m trying to do some checkings on a DB schema at the beginning of a PL/SQL script.
If the checkings give unsuccessful results, I want to stop the script, to prevent th
Rather than throw an application error, it's much simpler to just use the RETURN keyword which exits the current PL/SQL block very smoothly.
Just make sure you do a DBMS_OUTPUT.PUT_LINE('Exited because before it to provide the user with a nice message of why you're exiting of course!
DBMS_OUTPUT.PUT_LINE('Exited because before it to provide the user with a nice message of why you're exiting of course!