
Trigger
A trigger is a rule or instruction set in a database that automatically activates in response to specific events, such as inserting, updating, or deleting data. Think of it as an automatic assistant that performs predefined actions to ensure data integrity, enforce rules, or maintain consistency without manual intervention. For example, a trigger might automatically log changes or prevent certain updates. It helps streamline processes and maintains the quality and reliability of data within the database system.