How do you list all triggers in a MySQL database?

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

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

4条回答
  •  天涯浪人
    2020-12-23 09:38

    The command for listing all triggers is:

    show triggers;
    

    or you can access the INFORMATION_SCHEMA table directly by:

    select trigger_schema, trigger_name, action_statement
    from information_schema.triggers
    
    • You can do this from version 5.0.10 onwards.
    • More information about the TRIGGERS table is here.

提交回复
热议问题