estoy creando un paquete en el que tengo un procedimiento que inserta datos en una tabla y otro procedimiento que borra datos pero me está dando error. Lo que tengo es lo siguiente:
CREATE OR REPLACE PACKAGE funcionesJobs AS
procedure addJob;
procedure deleteJob;
END funcionesJobs;
CREATE OR REPLACE PACKAGE BODY funcionesJobs
IS
PROCEDURE addJob (
p_jobID VARCHAR2,
p_jobTitle VARCHAR2,
p_minSalary NUMBER,
p_maxSalary NUMBER
)
AS
BEGIN
INSERT INTO JOBS VALUES(p_jobID, p_jobTitle, p_minSalary, p_maxSalary);
END;
PROCEDURE deleteJob(
AS
BEGIN
DELETE * FROM JOBS where ID=''
)
;
END;
BEGIN
funcionesJobs.addJob('NUEVO','Nuevo puesto', 500, 999);
--funcionesJobs.deleteJob('NUEVO')
END;
El error que me da es el siguiente:
Errors: PACKAGE FUNCIONESJOBS
Line/Col: 10/5 PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following:
language
Line/Col: 15/5 PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following:
end not pragma final instantiable persistable order
overriding static member constructor map