Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: char vs. varchar in a data warehouse
Raj,
What do you mean by :
'oracle still puts in a character to indicate that this column has a NULL value' ?
Oracle does not insert anything into a nullable column when the insert value is an empty string or a NULL.
This is true of both char and varchar2.
Or are you saying that oracle somehow tracks that a NULL was inserted by use of a special character?
( Guess I could dump a block and find out, but it's easier to ask you. :)
Jared
"Jamadagni, Rajendra" <Rajendra.Jamadagni_at_espn.com>
Sent by: root_at_fatcity.com
06/05/2002 09:28 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Subject: RE: char vs. varchar in a data warehouse
Lisa,
let it be varchar2 ... but the developers are not entirely right too.
oracle
still puts in a character to indicate that this column has a NULL value.
So, unless your storage is at premium, leave it as varchar2, because the moment you make it CHAR, the comparison semantics change when you compare that with varchar2 field and that would be an added cost for your SQLS.
Raj
Rajendra Jamadagni MIS, ESPN Inc.Rajendra dot Jamadagni at ESPN dot com
QOTD: Any clod can have facts, but having an opinion is an art!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jun 05 2002 - 12:59:15 CDT
- text/plain attachment: ESPN_Disclaimer.txt
![]() |
![]() |