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: char vs. varchar

Re: char vs. varchar

From: <dperez_at_juno_nospam.com>
Date: Sat, 09 Jan 1999 02:54:00 GMT
Message-ID: <3696c3a4.176847838@news.cwix.com>


I was told by one of my DBA instructors that whenever possible varchar should be used. Supposedly it is much quicker to read or write varchars than to retrieve or write the fixed length chars.........

BUT, one question I've always wondered about is if the system doesn't know how long a varchar is going to be, and it only allocates the space in the record for whatever the original size of the field is, then if the field length is increased doesn't the database have to store the additional characters in an overflow area of the block? In which case it would have to do MORE I/Os...

In any case, my recollection is the system is optimized to use varchars........ Received on Fri Jan 08 1999 - 20:54:00 CST

Original text of this message

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