IT lexicon › Database › Trigger (database)

Trigger (database)

Database På svenska → Updated: 2026-05-23

Code that runs automatically on INSERT/UPDATE/DELETE of a table — "BEFORE" or "AFTER".

Classic uses: audit log (record changes), compute derived columns, enforce integrity. Powerful but hard to debug — "why did the row change?" can be a trigger several layers deep. Many modern teams avoid them.

← Back to the lexicon