0
我做了一個觸發器:觸發更新或刪除mysql的
delimiter |
CREATE TRIGGER update_table2 after UPDATE ON table1
FOR EACH ROW
BEGIN
//here goes an update action
END |
delimiter ;
現在我想,這觸發雲也:after DELETE ON table1
我想是這樣的:
delimiter |
CREATE TRIGGER update_table2 after UPDATE or DELETE ON table1
FOR EACH ROW
BEGIN
//here goes an update action
END |
delimiter ;
但這不是加工。我知道我可以創建一個特定的觸發器,但爲了易讀,我想用這種方式。 希望mySql支持這個。