6procs Funcs Triggers
6procs Funcs Triggers
TRIGGERS
EXECUTE Procedure_name
SYNTAX:
CREATE [OR REPLACE] TRIGGER trigger_name
{BEFORE|AFTER} triggering_event ON table_name
[FOR EACH ROW]
[WHEN condition]
DECLARE
Declaration statements
BEGIN
Executable statements
EXCEPTION
Exception-handling statements
END;
Bordoloi and Bock
TRIGGERS
END IF;
END;
/
The above example shows a trigger that limits the DML
actions to the employee table to weekdays from 8.30am to
6.30pm.
Bordoloi If a user tries to insert/update/delete a row in the
and Bock