Multiple choice technology databases

What is a trigger?

  1. A piece of logic written in PL/SQL

  2. Executed at the arrival of a SQL event

  3. Both A & B

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A trigger is indeed a piece of logic (typically written in PL/SQL in Oracle databases) that automatically executes in response to specific SQL events like INSERT, UPDATE, or DELETE operations on a table. Therefore both A and B are correct.