1. Get all trigger information (TRIGGERS)
* The FROM INFORMATION_SCHEMA.TRIGGERS the WHERE the SELECT
TRIGGER_SCHEMA
= 'database name'; TRIGGERS Table: Provides information about all triggers. Detailed representation of a trigger belongs to which table. Fields are as follows:
Field | meaning |
trigger_schema | Name of the database trigger occurs |
trigger_name | Trigger name |
event_manipulation | Triggering event. This is the type of operation on the associated table trigger trigger. Value 'INSERT' (insert rows), 'DELETE' (deleting rows) or 'UPDATE' (modified line) |
event_object_schema | Trigger database |
event_object_table | Trigger Table |
action_statement | Triggering statement |
action_timing | Trigger timing. Value 'BEFORE' or 'AFTER' |
definable definable | Create a trigger user account format.' |
reference:
https://blog.csdn.net/BlingZeng/article/details/89352073
Disclaimer: This blog is a personal learning, as with other similar works, is purely coincidental, reproduced, please indicate the source!