-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 に答える