Trigger (SQL)

A trigger is an SQL mechanism that is automatically executed when an event (INSERT, UPDATE, DELETE) occurs. It can be used to control integrity, automate actions or maintain logs.