Question

 What is the primary purpose of a "Trigger" in a database?

A To define a virtual table based on a query.
B To enforce referential integrity constraints automatically.
C To execute a stored procedure manually.
D To automatically execute a specified SQL code in response to certain events (INSERT, UPDATE, DELETE) on a table.
E To create a temporary table for complex calculations.
Practice Next

Hey! Ask a query