pl sql中的包编译错误

时间:2013-10-03 21:36:19

标签: oracle plsql syntax-error

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

1 个答案:

答案 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;