Messages
Topics
Lists
Groups
Marketplace
Jobs
Charity Ferry
2 years ago
SQL Triggers, also called Database Triggers, allow you to tell your SQL engine (for these examples, Postgres) to run a piece of code when an event happens, or even before the event.
#postgresql #postgresql trigger #trigger #sql
SQL triggers are less common but can be a great solution for certain situations. I'll provide examples for how to use triggers to enforce data integrity and track changes to a database.