Editing table triggers¶
A trigger is a small piece of SQL that runs automatically whenever rows are inserted, updated, or deleted โ useful for keeping an audit log, maintaining a derived value, or enforcing a rule that goes beyond a simple constraint. Triggers are managed on the Triggers sub-tab of the Design tab.

To add a trigger:
-
Click Add to open the trigger designer.

-
Build the
CREATE TRIGGERstatement visually โ choose when it fires (before or afterINSERT,UPDATE, orDELETE), an optional condition, and the SQL it runs. - Click OK.
To modify a trigger: select it, click Modify, adjust it, and click OK.
To delete a trigger: select it, click Delete, and confirm.
Tip
The designer writes standard SQL, so you can always review the generated CREATE TRIGGER statement โ a good way to learn the syntax while you build.
See also: Editing a table ยท Applying the changes after editing a table