Subject | Re: [firebird-support] Force NULL to zero in calculation? |
---|---|
Author | Lester Caine |
Post date | 2004-08-17T17:41:08Z |
Joe Martinez wrote:
UPDATE X SET Y = 0 WHERE Y IS NULL
Then add the trigger to keep it that way.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
>>You should define columns like that as NOT NULL and / or use triggers toJust change them now then.
>>set them to 0 when insering / updating.
>>This will save you a lot of trouble...
>
> Yes, good point. Unfortunately, that hasn't happened either.
UPDATE X SET Y = 0 WHERE Y IS NULL
Then add the trigger to keep it that way.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services