oracle - stored procedure using the IF NOT EXISTS -
i researching issues regarding oracle. i'm creating stored procedures , boot following errors show them in picture, hope me resolve error.
[]
you can add variable v_count number :=0;
in procedure check if value exists.
example:
create or replace procedure procedure_name(parameters) v_count number := 0; begin select count(1) v_count your_table .. . if v_count = 0 insert ... elsif update ... commit; end if; end;
Comments
Post a Comment