How do you list all triggers in a MySQL database?

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

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

4条回答
  •  忘掉有多难
    2020-12-23 09:22

    For showing a particular trigger in a particular schema you can try the following:

    select * from information_schema.triggers where 
    information_schema.triggers.trigger_name like '%trigger_name%' and 
    information_schema.triggers.trigger_schema like '%data_base_name%'
    

提交回复
热议问题