Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Why do Oracle treat NULL like this?

Why do Oracle treat NULL like this?

From: Michael <MichaelChanFong_at_SierraSystems.com>
Date: Wed, 29 Mar 2000 18:07:29 GMT
Message-ID: <BDrE4.21$tz6.579403@news1.van.metronet.ca>


Hi,

select 'a' || NULL || 'b'
from dual
gives 'ab'

but

select 1 + NULL
from dual
gives NULL

Why in the first example, NULL is considered as empty string, while in the second example NULL is considered as undefined? That does not look consistent. What is the rationale behind it?

Thanks in advance.
Michael Received on Wed Mar 29 2000 - 12:07:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US