I Searched the DB2 Forum and did not find anything about this before posting this question.
I am looking for confirmation that TRIGGERS placed on VIEWS only fire when you use the view and not the underlying File/Table.
Here is and example. PF/TABLE named DTLTRAN and VIEW of that table name VWDTLTRAN.
the TRIGGERS, one for insert and one for Update are placed on VWDTLTRAN.
If I do an insert/update on DTLTRAN the triggers DO NOT fire. (is this the correct behavior? or should they be firing. We hoped they would. )
If I do an insert/update on VWDTLTRAN the triggers DO fire. (is this the correct behavior?)
While I have read a lot of IBM documentation. (I did get it to work) That documentation never explicitly said "The Triggers on VIEWS Fire When....."
Thanks for your help.
I am looking for confirmation that TRIGGERS placed on VIEWS only fire when you use the view and not the underlying File/Table.
Here is and example. PF/TABLE named DTLTRAN and VIEW of that table name VWDTLTRAN.
the TRIGGERS, one for insert and one for Update are placed on VWDTLTRAN.
If I do an insert/update on DTLTRAN the triggers DO NOT fire. (is this the correct behavior? or should they be firing. We hoped they would. )
If I do an insert/update on VWDTLTRAN the triggers DO fire. (is this the correct behavior?)
While I have read a lot of IBM documentation. (I did get it to work) That documentation never explicitly said "The Triggers on VIEWS Fire When....."
Thanks for your help.
Comment