Skip to main content

triggers

Overview

The triggers table provides information about triggers. Currently, Apache Doris supports this table for MySQL compatibility, but does not support user-defined triggers. This table is always empty.

Database

information_schema

Table Information

Column NameTypeDescription
TRIGGER_CATALOGvarchar(512)The name of the catalog to which the trigger belongs. Always 'def'.
TRIGGER_SCHEMAvarchar(64)The name of the schema (database) to which the trigger belongs.
TRIGGER_NAMEvarchar(64)The name of the trigger.
EVENT_MANIPULATIONvarchar(6)The trigger event (INSERT, UPDATE, DELETE).
EVENT_OBJECT_CATALOGvarchar(512)The catalog name of the table with which the trigger is associated. Always 'def'.
EVENT_OBJECT_SCHEMAvarchar(64)The schema (database) name of the table with which the trigger is associated.
EVENT_OBJECT_TABLEvarchar(64)The name of the table with which the trigger is associated.
ACTION_ORDERbigintThe ordinal definition order of the trigger.
ACTION_CONDITIONvarchar(512)null
ACTION_STATEMENTvarchar(512)The trigger body.
ACTION_ORIENTATIONvarchar(9)Always 'ROW'.
ACTION_TIMINGvarchar(6)Trigger timing (BEFORE, AFTER).
ACTION_REFERENCE_OLD_TABLEvarchar(64)null
ACTION_REFERENCE_NEW_TABLEvarchar(64)null
ACTION_REFERENCE_OLD_ROWvarchar(3)Always 'OLD'.
ACTION_REFERENCE_NEW_ROWvarchar(3)Always 'NEW'.
CREATEDdatetimeThe time when the trigger was created.
SQL_MODEvarchar(8192)The SQL mode in effect when the trigger was created.
DEFINERvarchar(77)The account that created the trigger.
CHARACTER_SET_CLIENTvarchar(32)The session value of the character_set_client system variable when the trigger was created.
COLLATION_CONNECTIONvarchar(32)The session value of the collation_connection system variable when the trigger was created.
DATABASE_COLLATIONvarchar(32)The collation of the database with which the trigger is associated.