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: VARCHAR2(1) vs CHAR(1)

Re: VARCHAR2(1) vs CHAR(1)

From: Marco Muracchioli <reply.on_at_group.please>
Date: Sun, 28 Jul 2002 10:10:14 GMT
Message-ID: <aqP09.129764$Jj7.2997288@news1.tin.it>


Hi,

you should use char type if you need to store 1 or 2 char in the field. Consider that varchar types need, phisically, more information than a simple char type (such as size).
If you know that the field always contains null or 1 character (null or 2 characters for char(2)), char is the cheapest and fast solution. "Fast" include the more speed than the DBMS need to organize and manage a char data, because it always know the exact size and never need to calculate it.

Marco Received on Sun Jul 28 2002 - 05:10:14 CDT

Original text of this message

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