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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -