I have a table as follows:
SQL> desc employee;
Name Null? Type
----------------------------------------- -------- ----------
EMP_NO NOT NULL NUMBER(4)
EMP_NAME NOT NULL CHAR(20)
EMP_SALARY NOT NULL NUMBER(8,2
EMP_SDATE NOT NULL DATE
DEPT_NO NOT NULL NUMBER(2)
ADDED_BY NOT NULL CHAR(20)
And a procedure Check_Delete as defined follows:
procedure Check_Delete (
p_user IN employee.added_by%type,
p_sysdate IN employee.emp_sdate%type)
as
===
How can I create a trigger that will called the procedure
Check_Delete before the actual delete?
SQL> desc employee;
Name Null? Type
----------------------------------------- -------- ----------
EMP_NO NOT NULL NUMBER(4)
EMP_NAME NOT NULL CHAR(20)
EMP_SALARY NOT NULL NUMBER(8,2
EMP_SDATE NOT NULL DATE
DEPT_NO NOT NULL NUMBER(2)
ADDED_BY NOT NULL CHAR(20)
And a procedure Check_Delete as defined follows:
procedure Check_Delete (
p_user IN employee.added_by%type,
p_sysdate IN employee.emp_sdate%type)
as
===
How can I create a trigger that will called the procedure
Check_Delete before the actual delete?