SHOW TRIGGERS
List triggers defined on tables. View metadata such as the trigger event, timing, and the table it is associated with.
Syntax
SHOW TRIGGERS [FROM db_name]
[LIKE 'pattern' | WHERE expr]Description
Examples
SHOW triggers Like 'animals' \G
*************************** 1. row ***************************
Trigger: the_mooses_are_loose
Event: INSERT
Table: animals
Statement: BEGIN
IF NEW.name = 'Moose' THEN
UPDATE animal_count SET animal_count.animals = animal_count.animals+100;
ELSE
UPDATE animal_count SET animal_count.animals = animal_count.animals+1;
END IF;
END
Timing: AFTER
Created: 2016-09-29 13:53:34.35
sql_mode:
Definer: root@localhost
character_set_client: utf8
collation_connection: utf8_general_ci
Database Collation: latin1_swedish_ciSee also
Last updated
Was this helpful?

