Question - What is a trigger in MySQL?
Answer -
A trigger is a table-associated database object in MySQL. It is activated when a specified action takes place.
A trigger can be invoked after or before the event takes place. It can be used on INSERT, DELETE, and UPDATE. It uses the respective syntax to define the triggers. For example, BEFORE INSERT, AFTER DELETE, etc.