Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: char is going away?
> 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