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 -> Re: VARCHAR2: NULL value vs. empty string

Re: VARCHAR2: NULL value vs. empty string

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Sun, 14 Dec 2003 10:03:04 -0800
Message-ID: <1071424889.658804@yasure>


Daniel Gustafsson wrote:

> From the standard compliance tables in the Oracle SQL Reference
> manual.
> "Oracle partially supports these subfeatures:
> E021-02, CHARACTER VARYING data type (Oracle does not distinguish a
> zero-length VARCHAR string from NULL)
> E021-03, Character literals (Oracle regards the zero-length literal ''
> as being null)"

And how, exactly, do you correlate this with the ANSI standard? NULL in the standard is a lack of a value ... it is not a zero length string.

You are making an assumption. And an incorrect one.

> Daniel Gustafsson, Mimer SQL Development
> http://www.mimer.se

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Sun Dec 14 2003 - 12:03:04 CST

Original text of this message

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