How are triggers managed in MySQL?
MySQL 5.0中,触发器用 CREATE TRIGGER 语句来创建,用 DROP TRIGGER 语句来删除.详情请看 Section 18.1, “CREATE TRIGGER Syntax”, 和 Section 18.2, “DROP TRIGGER Syntax”. 查询 INFORMATION_SCHEMA.TRIGGERS 表就可以取得触发器的信息,详情请看 Section 20.16, “The INFORMATION_SCHEMA TRIGGERS Table”. In MySQL 5.0, triggers can be created using the CREATE TRIGGER statement, and dropped using DROP TRIGGER. See Section 18.1, “CREATE TRIGGER Syntax”, and Section 18.2, “DROP TRIGGER Syntax”, for more about these statements. Information about triggers can be obtained by querying the INFORMATION_SCHEMA.TRIGGERS table. See Section 20.16, “The INFORMATION_SCHEMA TRIGGERS Table”.
In MySQL 5.1, triggers can be created using the CREATE TRIGGER statement, and dropped using DROP TRIGGER. See Section 19.1, “CREATE TRIGGER Syntax”, and Section 19.2, “DROP TRIGGER Syntax”, for more about these statements. Information about triggers can be obtained by querying the INFORMATION_SCHEMA.TRIGGERS table. See Section 22.16, “The INFORMATION_SCHEMA TRIGGERS Table”.
In MySQL 5.0, triggers can be created using the CREATE TRIGGER statement, and dropped using DROP TRIGGER. See Section 18.1, “CREATE TRIGGER Syntax”, and Section 18.2, “DROP TRIGGER Syntax”, for more about these statements. Information about triggers can be obtained by querying the INFORMATION_SCHEMA.TRIGGERS table. See Section 20.16, “The INFORMATION_SCHEMA TRIGGERS Table”.
In MySQL 5.0, triggers can be created using the CREATE TRIGGER statement, and dropped using DROP TRIGGER. See Section 20.1, “CREATE TRIGGER Syntax”, and Section 20.2, “DROP TRIGGER Syntax”, for more about these statements. Information about triggers can be obtained by querying the INFORMATION_SCHEMA.TRIGGERS table. See Section 22.16, “The INFORMATION_SCHEMA TRIGGERS Table”.
In MySQL 6.0, triggers can be created using the CREATE TRIGGER statement, and dropped using DROP TRIGGER. See Section 12.1.15, “CREATE TRIGGER Syntax”, and Section 12.1.24, “DROP TRIGGER Syntax”, for more about these statements. Information about triggers can be obtained by querying the INFORMATION_SCHEMA.TRIGGERS table. See Section 19.16, “The INFORMATION_SCHEMA TRIGGERS Table”.