What are the different types of triggers in Oracle PL/SQL?

1 Answers
Answered by suresh

Types of Triggers in Oracle PL/SQL

Triggers in Oracle PL/SQL are categorized into several types based on when they are fired. The different types include:

  1. BEFORE Triggers: These triggers are fired before the execution of a DML (Data Manipulation Language) statement.
  2. AFTER Triggers: These triggers are fired after the execution of a DML statement.
  3. INSTEAD OF Triggers: These triggers are fired in place of the triggering action for views.
  4. ROW Triggers: These triggers are fired for each row affected by the triggering statement.
  5. STATEMENT Triggers: These triggers are fired once for each triggering statement regardless of the number of rows affected.
  6. COMPOUND Triggers: These triggers combine various types of triggers, providing more advanced functionality.

Understanding the different types of triggers in Oracle PL/SQL is essential for efficient database management and optimizing system performance.

Answer for Question: What are the different types of triggers in Oracle PL/SQL?