CREATE OR REPLACE PACKAGE BODY jobs_package as
PROCEDURE add_job (
p_job_id NUMBER,
p_job_title VARCHAR2,
p_min_salary NUMBER,
p_max_salary NUMBER) AS
BEGIN
UPDATE jobs
SET job_title = p_job_title,
min_salary = p_min_salary,
max_salary = p_MAX_salary; -- error appears here underlined
WHERE
job_id = p_job_id;
EXCEPTION
WHEN DATA_NOT_FOUND THEN
Raise_application_error(-204940, 'This Job cannot be found. ' || p_job_title
|| ' Job ID: ' || p_job_id);
END add_job;
END jobs_package;
/
show err
答案 0 :(得分:1)
取出分号
max_salary = p_MAX_salary;
UPDATE jobs
SET job_title = p_job_title,
min_salary = p_min_salary,
max_salary = p_MAX_salary
WHERE
job_id = p_job_id;