Oracle 5.0 Reference Manual page 2895

Table of Contents

Advertisement

B.5.5: [2875]
How are triggers managed in MySQL?
B.5.6: [2875]
Is there a way to view all triggers in a given database?
B.5.7: [2875]
Where are triggers stored?
B.5.8: [2876]
Can a trigger call a stored procedure?
B.5.9: [2876]
Can triggers access tables?
B.5.10: [2876]
Can triggers call an external application through a UDF?
B.5.11: [2876]
Is it possible for a trigger to update tables on a remote server?
B.5.12: [2876]
Do triggers work with replication?
B.5.13: [2876]
How are actions carried out through triggers on a master replicated to a slave?
Questions and Answers
B.5.1: Where can I find the documentation for MySQL 5.0 triggers?
See
Section 18.3, "Using
B.5.2: Is there a discussion forum for MySQL Triggers?
Yes. It is available at http://forums.mysql.com/list.php?99.
B.5.3: Does MySQL 5.0 have statement-level or row-level triggers?
In MySQL 5.0, all triggers are
inserted, updated, or deleted. MySQL 5.0 does not support triggers using
B.5.4: Are there any default triggers?
Not explicitly. MySQL does have specific special behavior for some
for columns which are defined using AUTO_INCREMENT.
B.5.5: How are triggers managed in MySQL?
In MySQL 5.0, triggers can be created using the
TRIGGER. See
Section 13.1.11,
DROP
Syntax", for more about these statements.
TRIGGER
Information about triggers can be obtained by querying the
See
Section 19.15, "The
B.5.6: Is there a way to view all triggers in a given database?
Yes. You can obtain a listing of all triggers defined on database
INFORMATION_SCHEMA.TRIGGERS
SELECT TRIGGER_NAME, EVENT_MANIPULATION, EVENT_OBJECT_TABLE, ACTION_STATEMENT
FROM INFORMATION_SCHEMA.TRIGGERS
WHERE TRIGGER_SCHEMA='dbname';
For more information about this table, see
Table".
You can also use the
SHOW TRIGGERS
"SHOW TRIGGERS
Syntax".
B.5.7: Where are triggers stored?
Triggers for a table are currently stored in
MySQL 5.0 FAQ: Triggers
Triggers".
ROW—that is, the trigger is activated for each row that is
FOR EACH
"CREATE TRIGGER
INFORMATION_SCHEMA TRIGGERS
table such as the one shown here:
Section 19.15, "The
statement, which is specific to MySQL. See
.TRG
2875
TIMESTAMP
statement, and dropped using
CREATE TRIGGER
Syntax", and
INFORMATION_SCHEMA.TRIGGERS
Table".
dbname
INFORMATION_SCHEMA TRIGGERS
files, with one such file one per table.
FOR EACH
STATEMENT.
columns, as well as
Section 13.1.18,
"DROP
using a query on the
Section 13.7.5.35,
table.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents