As of MySQL 5.7.2, it is possible to define multiple triggers for
a given table that have the same trigger event and action time.
For example, you cannot have two BEFORE UPDATE triggers for a
table. By default, triggers that have the same trigger event and
action time activate in the order they were created. To affect
trigger order, specify a trigger_order clause that indicates
FOLLOWS or PRECEDES and the name of an existing trigger that also
has the same trigger event and action time. With FOLLOWS, the new
trigger activates after the existing trigger. With PRECEDES, the
new trigger activates before the existing trigger.MySQL :: MySQL 5.7 Reference Manual :: 13.1.16 CREATE
TRIGGER Syntax
試してみよう。
5.6のフツーの動作は
mysql56> CREATE TRIGGER before_insert_1 BEFORE INSERT ON t1 …[さらに読む]