Create trigger Command

Triggers are the database operation that will be fired immediately when a DML statement (INSERT, UPDATE or DELETE) is executed on a database table.

Syntax

CREATE [OR REPLACE] TRIGGER trigger_name

{BEFORE | AFTER | INSTEAD OF}

{INSERT [OR] | UPDATE [OR] | DELETE}

[OF col_name]

On table_name

[FOR EACH ROW]

WHEN (Condition)

BEGIN

---SQL Statement---

END


Trigger in SQL

Examples

Previous article: Oracle Commands : Part 1
Next Article: Oracle Commands : Part 3