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

Home -> Community -> Usenet -> c.d.o.server -> Re: Null and empty string

Re: Null and empty string

From: Mikolaj Morzy <Mikolaj.Morzy_at_cs.put.poznan.pl>
Date: 04 Sep 2001 17:37:38 +0200
Message-ID: <m3y9nvx8zh.fsf@dcs-430x-mm.cs.put.poznan.pl>

Quoting Oracle9i documentation:

A string of zero length ('') is not equivalent to a NULL value. According to the ANSI SQL 1992 Transitional standard, a zero-length or empty string is not the same as NULL. Ensure that applications do not treat empty strings and NULL values equivalently.

This can be found under " Oracle8 and Oracle8i Desupported and Deprecated Features". I'd suggest NOT to use an empty string as a representation of a NULL value as they are semantically different.   best regards

"Terry Dykstra" <dontreply_tdykstra_at_cfol.ab.ca> writes:

> In Oracle null and empty string are the same. Not ANSI standard, but that's
> the way it is.
>
> --

-- 
===============================================================
Miko,B3(Baj Morzy
Instytut Informatyki           Institute of Computing Science
Politechniki Pozna,Bq(Bskiej       Poznan University of Technology
ul. Piotrowo 3A                ul. Piotrowo 3A
60-965 Pozna,Bq(B                  60-965 Poznan, POLAND

e-mail: DONTLIKESPAMMikolaj.Morzy_at_cs.put.poznan.pl
tel.  : +48 61 665 21 27
fax   : +48 61 877 15 25
===============================================================
Received on Tue Sep 04 2001 - 10:37:38 CDT

Original text of this message

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