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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: char is going away?

Re: char is going away?

From: Tanel Poder <tanel.poder.003_at_mail.ee>
Date: Wed, 10 Dec 2003 13:39:26 -0800
Message-ID: <F001.005D9755.20031210133926@fatcity.com>


> What good reasons might an application have to use and
> depend on CHAR variables?

There was a recommendation in Oracle's intro to SQL training materials several years ago, that you can use fixed-len char columns to make sure that your rows never grow once inserted, thus reducing row migration possibility.

But in reality, whoever wrote it, didn't realize that number column size still do vary depending on contents, also a char col takes only one byte when it is NULL, despite it's length definition in data dictionary. Once you insert any data into it, the char as much bytes as required by definition and fills rest with blanks...

Tanel.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tanel Poder
  INET: tanel.poder.003_at_mail.ee

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Dec 10 2003 - 15:39:26 CST

Original text of this message

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