Hi, I have a question regarding pl/sql stored procedure. I am trying to create a sp that takes 4 in and updates 3 columns. Below is my initial code. create or replace procedure update_job (p_jid in hr_jobs.job_id%type, p_jt in hr_jobs.job_title%type, p_mins in hr_jobs.min_salary%type, p_maxs in hr_jobs.max_salary%type) is begin update hr_jobs set job_title = p_jt, min_salary = p_mins, max_salary = p_maxs where job_id = p_jid; commit; end; And it gives me an error like this; Error report - ORA-00955: name is already used by an existing object 00955. 00000 - "name is already used by an existing object" Can you help me with fixing my code or give me an idea how to solve this issue?
Hi, I have a question regarding pl/sql stored procedure.
I am trying to create a sp that takes 4 in and updates 3 columns. Below is my initial code.
create or replace procedure update_job
(p_jid in hr_jobs.job_id%type,
p_jt in hr_jobs.job_title%type,
p_mins in hr_jobs.min_salary%type,
p_maxs in hr_jobs.max_salary%type)
is
begin
update hr_jobs
set job_title = p_jt,
min_salary = p_mins,
max_salary = p_maxs
where job_id = p_jid;
commit;
end;
And it gives me an error like this;
Error report -
ORA-00955: name is already used by an existing object
00955. 00000 - "name is already used by an existing object"
Can you help me with fixing my code or give me an idea how to solve this issue?
Step by step
Solved in 3 steps