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: White space compression in Oracle

RE: White space compression in Oracle

From: Ji, Richard <Richard.Ji_at_MobileSpring.com>
Date: Tue, 12 Feb 2002 08:44:40 -0800
Message-ID: <F001.0040CBFB.20020212073337@fatcity.com>

Note
VARCHAR and CHAR uses different comparison semantics.  With CHAR the shorter one is padded with spaces up to the same length as the longer one and a byte by byte comparison is used.  VARCHAR uses a none padded method.

  <FONT face=Tahoma
  size=2>-----Original Message-----From: Marc Perkowitz   [mailto:mperkowitz_at_twjconsulting.com]Sent: Monday, February 11,   2002 4:40 PMTo: Multiple recipients of list   ORACLE-LSubject: Re: White space compression in   Oracle
  Beth,
  Actually, varchar2 is char with the trailing   spaces removed.  What's the difficulty with switching to varchar2?    Does RDB regenerate the white spaces when retrieving the data or   something?   Generally, everyone uses varchar2 in   Oracle.
   
  Marc PerkowitzSenior ConsultantTWJ
  Consulting, LLC
   
  847-256-8866 x15<A
  href="http://www.twjconsulting.com">www.twjconsulting.com   <BLOCKQUOTE dir=ltr
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">     <BLOCKQUOTE dir=ltr
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Received on Tue Feb 12 2002 - 10:44:40 CST

Original text of this message

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