Subject | Setting field values within a trigger |
---|---|
Author | Dan Statham |
Post date | 2003-06-06T12:10:33Z |
Good Morning!
I have Firebird 1.0.0.796.
I am trying to set some fields in a table based on variable
results from within the tables insert trigger.
I am looking up and or calculating some variables. Then, I am
using "New.TotQtyBefore=:Total_Before" (and other fields the same
way) but the field is comming up null. I have a "if (new.TotQtyBefore
is null) then new.TotQtyBefore =0" but it did not help.
How do I set a fields value from within an insert trigger?
Ther is no unique index field on the table. (Bummer!)
Thanks...Dan'l
I have Firebird 1.0.0.796.
I am trying to set some fields in a table based on variable
results from within the tables insert trigger.
I am looking up and or calculating some variables. Then, I am
using "New.TotQtyBefore=:Total_Before" (and other fields the same
way) but the field is comming up null. I have a "if (new.TotQtyBefore
is null) then new.TotQtyBefore =0" but it did not help.
How do I set a fields value from within an insert trigger?
Ther is no unique index field on the table. (Bummer!)
Thanks...Dan'l