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.

[enter image description here]

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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -