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 database trigger is a procedural block of logic written in PL/SQL (or another procedural language) that is automatically executed or fired by the database engine in response to a specified SQL event, such as an INSERT, UPDATE, or DELETE statement.