14. Triggers
Triggers execute automatically before or after DML events and are useful for enforcing invariant checks and audit records.
Lessons
Trigger Event Table
| Timing | Event | Typical use |
|---|---|---|
BEFORE | INSERT, UPDATE, DELETE | Validate or normalize input |
AFTER | INSERT, UPDATE, DELETE | Audit logging and downstream side effects |
What's Next
- Continue to 15. Event Scheduler