Skip to content

Instantly share code, notes, and snippets.

@TysonJouglet
Created April 28, 2019 01:23
Show Gist options
  • Save TysonJouglet/685f56657527697793a245d60b8ca7e1 to your computer and use it in GitHub Desktop.
Save TysonJouglet/685f56657527697793a245d60b8ca7e1 to your computer and use it in GitHub Desktop.
assert procedure for pl/sql
create or replace procedure assert (
p_condition in boolean,
p_message in varchar2
)
is
begin
if not p_condition
or p_condition is null
then
raise_application_error(-20001, p_message);
end if;
end assert;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment