A trigger is a specification that the database should
automatically execute a particular function whenever a certain type
of operation is performed. Triggers can be attached
to tables, views,
indexes, and stored procedures.

The following example shows how to create a trigger that fires when
a row is inserted into the table emp:

CREATE TRIGGER emp_ins_trg
BEFORE INSERT ON emp
FOR EACH ROW
BEGIN