Subject | Re: [ib-support] returning NULL values |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2002-04-19T07:34:25Z |
On 18 Apr 2002 at 8:14, maria_ana_ph wrote:
update B set FIELD2=0 where FIELD2 is null;
SY, Dimitry Sibiryakov.
>The problem is, if the second field (FIELD2) is NULL, the third fieldAlter table B alter column FIELD2 type float default 0 not null;
>(CAST (A.FIELD2 AS FLOAT) - CAST (B.FIELD2 AS FLOAT)) would return
>NULL where it should the value of FIELD2.
>
>Do you know how would i go about this?
update B set FIELD2=0 where FIELD2 is null;
SY, Dimitry Sibiryakov.