Re: Null's vs Empty string
From: Eric Palmer <efp_at_etechinc.com>
Date: 1996/11/02
Message-ID: <327b33fd.697272_at_news.mindspring.com>#1/1
SERIS - SouthEast Regional Internet Society Enhancing Your Time On-Line
http://www.seris.org/
Eric F. Palmer
770.825.0535 Voice - 770.825.0796 Fax
http://www.etechinc.com/ *** Standard Disclaimer ***
Received on Sat Nov 02 1996 - 00:00:00 CET
Date: 1996/11/02
Message-ID: <327b33fd.697272_at_news.mindspring.com>#1/1
On Sat, 2 Nov 1996 05:05:44 GMT, herman_at_iquest.net wrote:
>Dick van Oordt <dvoordt_at_pi.net> wrote:
>
>
>You should be aware that any numeric columns which are left NULL are
>not considered to be zero in Oracle. You should ALWAYS use the NVL
>function on numeric columns when doing any type of math. Example:
>
>select
> num_col_1 + num_col_2
>from
> sometable;
>
>will not give the expected answer if either column is NULL. You
>should always write this as:
>
>select
> NVL(num_col_1,0) + NVL(num_col_2,0)
>from
> sometable;
>
>to make sure that a zero is added to num_col_1 if num_col_2 is NULL.
SERIS - SouthEast Regional Internet Society Enhancing Your Time On-Line
http://www.seris.org/
Eric F. Palmer
770.825.0535 Voice - 770.825.0796 Fax
http://www.etechinc.com/ *** Standard Disclaimer ***
Received on Sat Nov 02 1996 - 00:00:00 CET