Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: trailing spaces

Re: trailing spaces

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Mon, 9 Aug 1999 06:54:12 +0200
Message-ID: <934174460.7918.0.pluto.d4ee154e@news.demon.nl>


Update table_name
set char_column = rtrim(char_column)

and that for all tables.

Hth,

Sybrand Bakker, Oracle DBA

Steve A <spectre_at_hkstar.com> wrote in message news:1dw9pqj.ll5kopf3fcjeN@[201.1.1.73]...
> Hi,
> I've just inported rather alot of data into oracle 8 from foxpro
> I wrote the convesion programs based on the assumption that varchar2
> stripped any trailing spaces.
> I allocated 15 places for a string that is normally 10
>
> However I can only get the following query to work with the trailing
> spaces.
> What I really cannot figure is that I have a lot of this form of data,
> and some selects work on some tables, minus the trailing spaces, but the
> conversion was the same for all.
>
> "SELECT * FROM reldat where link02_88='CROC0O5SHZ '"
>
> nothing else will work
>
>
> Is there any utility I can run my databases thru to remove /cure the
> problem, without having to re-import all the data
Received on Sun Aug 08 1999 - 23:54:12 CDT

Original text of this message

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