Oracle trigger types include: 1. INSERT (triggered when a record is inserted); 2. UPDATE (triggered when a record is updated); 3. DELETE (triggered when a record is deleted); 4. BEFORE (execute action before the event) ); 5. AFTER (execute action after event); 6. INSTEAD OF (replace original event action); 7. ROW (apply action only to specific rows); 8. STATEMENT (apply action to entire SQL statement); 9. DDL (Triggered when a DDL statement is executed); 10. System (created and maintained by Oracle).
Types of triggers in Oracle
A trigger in Oracle is a database object that Automatically perform the specified action when it occurs. Triggers are mainly divided into the following types:
1. INSERT trigger
is triggered when a record is inserted into the table.
2. The UPDATE trigger
is triggered when a record is updated in the table.
3. DELETE trigger
Fires when a record is deleted from the table.
4. BEFORE trigger
A trigger that performs actions before an event occurs.
5. AFTER trigger
A trigger that performs actions after an event occurs.
6. INSTEAD OF trigger
A trigger that replaces the action of the original event.
7. ROW trigger
A trigger that only applies actions to specific rows.
8. STATEMENT trigger
A trigger that applies actions to the entire SQL statement.
9. DDL trigger
A trigger that fires when a data definition language (DDL) statement (such as CREATE, ALTER, DROP) is executed.
10. System triggers
Built-in triggers created and maintained by Oracle.
The above is the detailed content of What are the types of triggers in Oracle?. For more information, please follow other related articles on the PHP Chinese website!