Oracle 5.0 Reference Manual page 1747

Table of Contents

Advertisement

The
INFORMATION_SCHEMA
ACTION_REFERENCE_NEW_TABLE
ACTION_REFERENCE_OLD_ROW
ACTION_REFERENCE_NEW_ROW
CREATED
SQL_MODE
DEFINER
Notes:
• The
table was added in MySQL 5.0.10.
TRIGGERS
• The
TRIGGER_SCHEMA
trigger occurs and the trigger name, respectively.
• The
EVENT_MANIPULATION
'UPDATE'.
• As noted in
Section 18.3, "Using
EVENT_OBJECT_SCHEMA
table occurs, and the table's name.
• The
ACTION_ORDER
similar triggers on the same table. Currently, this value is always 0, because it is not possible to have
more than one trigger with the same
table.
• The
ACTION_STATEMENT
invoked. This is the same as the text displayed in the
TRIGGERS. Note that this text uses UTF-8 encoding.
• The
ACTION_ORIENTATION
• The
ACTION_TIMING
• The columns
ACTION_REFERENCE_OLD_ROW
and new column identifiers, respectively. This means that
contains the value
'OLD'
• The
column shows the server SQL mode that was in effect at the time when the trigger
SQL_MODE
was created (and thus which remains in effect for this trigger whenever it is invoked, regardless of
the current server SQL mode). The possible range of values for this column is the same as that of
the
[495]
sql_mode
• The
column was added in MySQL 5.0.17.
DEFINER
• The following columns currently always contain NULL: TRIGGER_CATALOG,
EVENT_OBJECT_CATALOG, ACTION_CONDITION, ACTION_REFERENCE_OLD_TABLE,
ACTION_REFERENCE_NEW_TABLE, and CREATED.
Example, using the
ins_sum
mysql>
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS\G
*************************** 1. row ***************************
TRIGGER_CATALOG: NULL
TRIGGER_SCHEMA: test
TRIGGER_NAME: ins_sum
EVENT_MANIPULATION: INSERT
EVENT_OBJECT_CATALOG: NULL
EVENT_OBJECT_SCHEMA: test
INFORMATION_SCHEMA TRIGGERS
Name
SHOW
and
TRIGGER_NAME
column contains one of the values 'INSERT', 'DELETE', or
Triggers", every trigger is associated with exactly one table. The
and
EVENT_OBJECT_TABLE
column contains the ordinal position of the trigger's action within the list of all
EVENT_MANIPULATION
column contains the statement to be executed when the trigger is
column always contains the value 'ROW'.
column contains one of the two values
and
ACTION_REFERENCE_NEW_ROW
system variable. See
Section 5.1.7, "Server SQL
trigger defined in
1727
Table
Name
columns contain the name of the database in which the
columns contain the database in which this
and
ACTION_TIMING
column of the output from
Statement
'BEFORE'
and
ACTION_REFERENCE_NEW_ROW
ACTION_REFERENCE_OLD_ROW
always contains the value 'NEW'.
indicates who defined the trigger.
DEFINER
Section 18.3, "Using
Triggers":
Remarks
NULL
OLD
NEW
(0)
NULL
MySQL extension
MySQL extension
on the same
SHOW
or 'AFTER'.
contain the old
always
Modes".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents