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: What's this...varchar2 as fast as char?

Re: What's this...varchar2 as fast as char?

From: Lun Wing San (Oracle) <wslun_at_qrcsun.qrc.org>
Date: 1997/02/07
Message-ID: <32FB81C8.7B4D@qrcsun.qrc.org>#1/1

Sean Emery wrote:
>
> Hello,
>
> Excuse me for bringing up a probably hashed and re-hashed argument, but
> two oracle consultants informed us that we should probably never use a
> char field because varchar2 fields are just as fast inside an Oracle DB
> and you never have to rtrim() them.

  varchar2 is variable length. As a result, it is space saving. In effect, it will save the time in table scan as it scans less blocks. Moreover, it uses non-blank padded comparison semantics. Thus, it reduces some overhead in comparison.

---
Name   : Lun Wing San
Title  : Oracle Application Developer of Hong Kong Productivity Council
         Oracle Database Administrator and System Administrator of QRC
Phone  : (852)27885841

This posting represents the personal opinions of the author. It is not the
official opinion or policy of the author's employer. Warranty expired when you
opened this article and I will not be responsible for its contents or use.
Received on Fri Feb 07 1997 - 00:00:00 CST

Original text of this message

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