HR - Code SQL
HR - Code SQL
HR - Code SQL
Rem
Rem hr_code.sql
Rem
Rem Copyright (c) 2001, 2015, Oracle Corporation. All rights reserved.
Rem
Rem without limitation the rights to use, copy, modify, merge, publish,
Rem
Rem The above copyright notice and this permission notice shall be
Rem
Rem THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Rem LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
Rem WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Rem
Rem NAME
Rem
Rem DESCRIPTION
Rem
Rem NOTES
Rem
Rem
Rem
SET FEEDBACK 1
SET NUMWIDTH 10
SET LINESIZE 80
SET TRIMSPOOL ON
REM
**************************************************************************
REM procedure and statement trigger to allow dmls during business hours:
BEGIN
RAISE_APPLICATION_ERROR (-20205,
END IF;
END secure_dml;
BEGIN
secure_dml;
END secure_employees;
REM
**************************************************************************
REM procedure to add a row to the JOB_HISTORY table and row trigger
( p_emp_id job_history.employee_id%type
, p_start_date job_history.start_date%type
, p_end_date job_history.end_date%type
, p_job_id job_history.job_id%type
, p_department_id job_history.department_id%type
)
IS
BEGIN
job_id, department_id)
END add_job_history;
BEGIN
:old.job_id, :old.department_id);
END;
COMMIT;