How do you list all triggers in a MySQL database?

前端 未结 4 642
攒了一身酷
攒了一身酷 2020-12-23 08:52

What is the command to list all triggers in a MySQL database?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 09:25

    You can use below to find a particular trigger definition.

    SHOW TRIGGERS LIKE '%trigger_name%'\G
    

    or the below to show all the triggers in the database. It will work for MySQL 5.0 and above.

    SHOW TRIGGERS\G
    

提交回复
热议问题