postgresql - postgres create trigger after insert but before delete? -
i want call stored procedure in 3 different cases: after insert
, after update
, before delete
. possible combine these cases 1 create trigger
statement? (i know, won't work):
create trigger update_pntzzz3 after insert or update or before delete on onedee each row execute procedure update_pntzzz3();
right create new trigger delete
case.
create trigger update_pntzzz3 after insert or update on onedee each row execute procedure update_pntzzz3(); create trigger del_pntzzz3 before delete on onedee each row execute procedure update_pntzzz3();
Comments
Post a Comment