Bird
0
0

In an UPDATE trigger, what does the OLD keyword represent?

easy📝 Conceptual Q1 of 15
SQL - Triggers
In an UPDATE trigger, what does the OLD keyword represent?
AThe new table structure
BThe row data after the update operation
CThe row data before the update operation
DThe trigger's execution time
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of OLD in UPDATE triggers

    The OLD keyword holds the original values of the row before the update happens.
  2. Step 2: Compare OLD with NEW

    NEW holds the updated values, so OLD must be the previous data.
  3. Final Answer:

    The row data before the update operation -> Option C
  4. Quick Check:

    OLD = before update [OK]
Quick Trick: OLD = old data before update, NEW = new data after update [OK]
Common Mistakes:
  • Confusing OLD with NEW
  • Thinking OLD refers to table structure
  • Assuming OLD is the updated data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes