-2
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
4

1 回答 1

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;
于 2013-10-03T21:39:17.727 回答