sql - Apply one trigger on many tables in Oracle -
i using oracle 11g on solaris platform. have created trigger inserts entry in test table every insert/update/delete on orders table. how can use same trigger 100 tables? need create 100 triggers i.e. 1 trigger on each table on want calculate dml operations?
a trigger can belong 1 table. need 1 hundred triggers in situation. description seems take same form, generate create trigger statements using data dictionary.
if processing complex should wrap logic in stored procedure , call (generated) triggers.
Comments
Post a Comment