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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -