Subject | Re: [ib-support] Trigger for "AFTER INSERT" and "AFTER UPDATE" |
---|---|
Author | Ann W. Harrison |
Post date | 2000-12-20T16:40:14Z |
At 12:14 PM 12/20/2000 +0100, Hug wrote:
not be a problem and you have one copy of the code.
Regards,
Ann
www.ibphoenix.com
We have answers.
>I need to make an action everytime a table T changes (both, on insert a newNot yet.
>record and on modify an old record).
>So, it seems logical to create a "trigger for T after insert" and a "trigger
>for T after update", both with the same body (repeating identical block of
>statements). But this isn't structured/modular programming...
>Is there a way to simplify this? (something as "trigger for T after (insert
>AND update)" sintax)
>Or must I create an independent procedure -with the statements- and toThat seems like the most sanitary way to do it. Performance should
>execute it from both triggers?
not be a problem and you have one copy of the code.
Regards,
Ann
www.ibphoenix.com
We have answers.