Mid SQL

What are triggers in SQL?

A trigger is a special kind of stored procedure that is automatically executed or fired when

certain events occur in a database, such as INSERT, UPDATE, or DELETE.

Example: A trigger that automatically updates a timestamp field every time a row is modified.

More from SQL Server Tutorial

All questions for this course