Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Phantom characters
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C08026.7E67AC50
Content-Type: text/plain;
charset="iso-8859-1"
> -----Original Message-----
> From: David Barbour [mailto:dbarbour_at_connectsouth.com]
> Sent: mardi, 16. janvier 2001 16:45
>
> I've got some entries in one of my columns that appear to
> contain a leading
> space or spaces. When I try to use ltrim, they don't go
> away. If I spool
> the data, I find these spaces are actually represented in the
> spool file as
> /240. I don't have this number as an ascii, decimal or octal
> representation
> of anything, and am at a loss as to how to identify and remove these
> "phantoms".
Try "dump" to get the value to supply to the chr function (will probably be 240), then use the ltrim function.
e.g.
SQL> select dump ('xxxMy name') from dual ;
DUMP('XXXMYNAME')
SQL> select ltrim ('xxxMy Name', chr (120)) from dual ;
LTRIM('
Jacques R. Kilchoer
(949) 754-8816
Quest Software, Inc.
8001 Irvine Center Drive
Irvine, California 92618
U.S.A.
http://www.quest.com
------_=_NextPart_001_01C08026.7E67AC50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =charset=3Diso-8859-1">
<TITLE>RE: Phantom characters</TITLE> </HEAD> <BODY>
<P><FONT SIZE=3D2>> -----Original Message-----</FONT> <BR><FONT SIZE=3D2>> From: David Barbour [<A = HREF=3D"mailto:dbarbour_at_connectsouth.com">mailto:dbarbour_at_connectsouth.c= om</A>]</FONT>
<BR><FONT SIZE=3D2>> Sent: mardi, 16. janvier 2001 16:45</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> I've got some entries in one of my columns that =appear to </FONT>
<P><FONT SIZE=3D2>Try "dump" to get the value to supply to =
the chr function (will probably be 240), then use the ltrim =
function.</FONT>
</P>
<P><FONT SIZE=3D2>e.g.</FONT>
</P>
<P><FONT SIZE=3D2>SQL> select dump ('xxxMy name') from dual ;</FONT> </P>
<P><FONT SIZE=3D2>DUMP('XXXMYNAME')</FONT> <BR><FONT =
SIZE=3D2>---------------------------------------------------</FONT><BR><FONT SIZE=3D2>Typ=3D96 Len=3D10: =
<P><FONT SIZE=3D2>SQL> select ltrim ('xxxMy Name', chr (120)) from =
dual ;</FONT>
</P>
<P><FONT SIZE=3D2>LTRIM('</FONT> <BR><FONT SIZE=3D2>-------</FONT> <BR><FONT SIZE=3D2>My Name</FONT> </P>
<P><FONT SIZE=3D2>------</FONT>
<BR><FONT SIZE=3D2>any ignorant comments made are the sole =
responsibility of J. R. Kilchoer and should not reflect adversely upon =
my employer.</FONT></P>
<P><FONT SIZE=3D2> </FONT> <BR><FONT SIZE=3D2>Jacques R. Kilchoer</FONT> <BR><FONT SIZE=3D2>(949) 754-8816</FONT> <BR><FONT SIZE=3D2>Quest Software, Inc.</FONT> <BR><FONT SIZE=3D2>8001 Irvine Center Drive</FONT> <BR><FONT SIZE=3D2>Irvine, California 92618</FONT> <BR><FONT SIZE=3D2>U.S.A.</FONT> <BR><FONT SIZE=3D2><A HREF=3D"http://www.quest.com" =Received on Tue Jan 16 2001 - 19:40:38 CST