我想在三种不同的情况下调用存储过程:在insert
之后,update
之后和delete
之前。是否可以将这些案例合并为一个create trigger
语句?像这样(我知道,这不会起作用):
CREATE TRIGGER update_pntzzz3
AFTER INSERT OR UPDATE OR BEFORE DELETE ON onedee
FOR EACH ROW
EXECUTE PROCEDURE update_pntzzz3();
现在我为delete
案例创建了一个新触发器。
CREATE TRIGGER update_pntzzz3
AFTER INSERT OR UPDATE ON onedee
FOR EACH ROW
EXECUTE PROCEDURE update_pntzzz3();
CREATE TRIGGER del_pntzzz3
BEFORE DELETE ON onedee
FOR EACH ROW
EXECUTE PROCEDURE update_pntzzz3();