Introduction
A BEFORE trigger lets you run some checks or changes before data is saved in the database. It helps keep data clean and correct.
You want to check or change data before it is inserted or updated.
You need to stop a wrong or unwanted change before it happens.
You want to automatically fill in missing information before saving.
You want to log or audit changes before they are made.
You want to modify data to a standard format before saving.