Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: White space compression in Oracle
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">
![]() |
![]() |