engineering computer science MCQ #677

What is the purpose of a trigger in a database?

engineering computer science MCQ #677

  1. Question 1

    Q1. What is the purpose of a trigger in a database?

    • A) To execute a set of actions automatically when a specific event occurs
    • B) To manually execute a query
    • C) To create a backup
    • D) To optimize queries

    Answer: To execute a set of actions automatically when a specific event occurs

    Explanation: Triggers automatically execute a set of actions when a specific database event occurs, such as insert, update, or delete.