All pages
Powered by GitBook
1 of 1

Loading...

Information Schema TRIGGERS Table

The Information Schema TRIGGERS table contains detailed information about triggers, including the event, timing, and action statement.

The Information Schema TRIGGERS table contains information about triggers.

It has the following columns:

Column
Description

TRIGGER_CATALOG

Queries to the TRIGGERS table return information even if the user doesn't have SELECT on the columns. The columns ACTION_CONDITION, ACTION_STATEMENT and DEFINER are NULL unless the user has the TRIGGER . Similar information is returned by the statement.

This page is licensed: CC BY-SA / Gnu FDL

  • Always def.

    TRIGGER_SCHEMA

    Database name in which the trigger occurs.

    TRIGGER_NAME

    Name of the trigger.

    EVENT_MANIPULATION

    The event that activates the trigger. Prior to MariaDB 12.0, one of INSERT, UPDATE or DELETE. From MariaDB 12.0, can contain multiple values, comma-separated.

    EVENT_OBJECT_CATALOG

    Always def.

    EVENT_OBJECT_SCHEMA

    Database name on which the trigger acts.

    EVENT_OBJECT_TABLE

    Table name on which the trigger acts.

    ACTION_ORDER

    Indicates the order that the action will be performed in (of the list of a table's triggers with identical EVENT_MANIPULATION and ACTION_TIMING values). See the clauses.

    ACTION_CONDITION

    NULL

    ACTION_STATEMENT

    Trigger body, UTF-8 encoded.

    ACTION_ORIENTATION

    Always ROW.

    ACTION_TIMING

    Whether the trigger acts BEFORE or AFTER the event that triggers it.

    ACTION_REFERENCE_OLD_TABLE

    Always NULL.

    ACTION_REFERENCE_NEW_TABLE

    Always NULL.

    ACTION_REFERENCE_OLD_ROW

    Always OLD.

    ACTION_REFERENCE_NEW_ROW

    Always NEW.

    CREATED

    Always NULL.

    SQL_MODE

    The when the trigger was created, and which it uses for execution.

    DEFINER

    The account that created the trigger, in the form user_name@host_name

    CHARACTER_SET_CLIENT

    The client when the trigger was created, from the session value of the system variable.

    COLLATION_CONNECTION

    The client when the trigger was created, from the session value of the system variable.

    DATABASE_COLLATION

    of the associated database.

    See also

    privileges
    privilege
    SHOW TRIGGERS
    Trigger Overview
    CREATE TRIGGER
    DROP TRIGGER
    SHOW TRIGGERS
    SHOW CREATE TRIGGER
    Trigger Limitations
    FOLLOWS/PRECEDES
    SQL_MODE
    character set
    character_set_client
    collation
    collation_connection
    Collation
    spinner