Introduction
A BEFORE UPDATE trigger lets you run some actions automatically just before a row in a table is changed. It helps you check or change data before saving.
You want to check if new data meets rules before updating a record.
You want to automatically change or fix data before it is saved.
You want to keep a log of old and new values before changes happen.
You want to prevent certain updates based on conditions.
You want to update related data automatically when a record changes.