Subject | RE: [firebird-support] AFTER OR BEFORE ? |
---|---|
Author | Leyne, Sean |
Post date | 2008-06-30T20:05:24Z |
Sergio,
Personally, I always do these operation *after* since there may be
constraints which can make the operation fail. By using *after* you
know that the insert has been successful.
Sean
> Hello, in this very simple trigger. It makes any difference to set itYou're right, it doesn't matter.
> after insert or before insert?
> I think it doesn't but just want to make sure.
> ...
Personally, I always do these operation *after* since there may be
constraints which can make the operation fail. By using *after* you
know that the insert has been successful.
Sean