Oracle Trigger - oracle tutorial - sql tutorial
What is Oracle Trigger ?
- In Oracle, you can define procedures that are implicitly executed when an INSERT, UPDATE or DELETE statement is issued against the associated table.
- These procedures are called database triggers.
- There are six CREATE TRIGGER statements according to their firing points.
- A trigger can include SQL and PL/SQL statements to execute as a unit and can invoke stored procedures.
Oracle sql trigger
Firing Point: BEFORE
- BEFORE INSERT TRIGGER
- BEFORE UPDATE TRIGGER
- BEFORE DELETE TRIGGER
Firing Point: AFTER
- AFTER INSERT TRIGGER
- AFTER UPDATE TRIGGER
- AFTER DELETE TRIGGER
oracle tutorial , sql tutorial , sql , pl sql tutorial , oracle , pl sql , plsql
Trigger Types
- Oracle BEFORE INSERT/UPDATE/DELETE Trigger
- Oracle AFTER INSERT/UPDATE/DELETE Trigger
- Oracle DROP Trigger
- Oracle DISABLE Trigger
- Oracle ENABLE Trigger
BEFORE INSERT TRIGGER
- A BEFORE INSERT Trigger means that Oracle will fire this trigger before the INSERT operation is executed.
Syntax
BEFORE UPDATE TRIGGER
- A BEFORE UPDATE Trigger means that Oracle will fire this trigger before the UPDATE operation is executed
Syntax
BEFORE DELETE Trigger
- A BEFORE DELETE Trigger means that Oracle will fire this trigger before the DELETE operation is executed.
Syntax
AFTER INSERT Trigger
- An AFTER INSERT Trigger means that Oracle will fire this trigger after the INSERT operation is executed.
Syntax
oracle tutorial , sql tutorial , sql , pl sql tutorial , oracle , pl sql , plsql
AFTER UPDATE Trigger
- An AFTER UPDATE Trigger means that Oracle will fire this trigger after the UPDATE operation is executed.
Syntax
AFTER DELETE Trigger
- An AFTER DELETE Trigger means that Oracle will fire this trigger after the DELETE operation is executed.