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: Help with syntax please...

Re: Help with syntax please...

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Tue, 13 Mar 2001 10:09:22 -0800
Message-ID: <F001.002CB30D.20010313100651@fatcity.com>

update table_name set column_name = replace(column_name, CHR(37), CHR(39))

CHR(37) is %
CHR(39) is '

Igor Neyman, OCP DBA
Perceptron, Inc.
(734)414-4627
ineyman_at_perceptron.com

> Please excuse any cross-post.
>
> __________________________________________________
> Pat Gorden-Ozgul BNL-ISD Systems
> gorden_at_bnl.gov 631-344-5159
>
>
>
>
>
> > -----Original Message-----
> > From: Gorden-Ozgul, Patricia E
> > Sent: Tuesday, March 13, 2001 12:06 PM
> > To: 'ODTUG-SQLPlus'
> > Subject: Help with syntax please...
> >
> > In order to force a data load, I converted apostrophes ['] to percentage
> > [%] in certain varchar fields.
> > I now need to update the table and convert them back.
> >
> > I'm having syntax difficulties. I'm testing the select before I do an
> > update, of course.
> > I'm sure one of you can help me.
> >
> > I've tried all the following with errors:
> > select replace(columnname, '%', "'") - last argument is 'double-quote,
> > quote, double-quote'
> > ... produces ORA-00904: invalid column name on last argument
> >
> > select replace(columnname, '%', '''] [PGO] - last argument is 'quote
> > quote quote'
> > ...produces ORA-01756: quoted string not properly terminated
> >
> > select replace[columnname, '%', '"'"'] [PGO] - last argument is
'quote,
> > double quote, quote, double quote, quote'
> > ...produces ORA-01740: missing double quote in identifier
> >
> > Thank you.
> >
> > Pat
> >
> > __________________________________________________
> > Pat Gorden-Ozgul BNL-ISD Systems
> > gorden_at_bnl.gov 631-344-5159
> >
> >
> >
> >
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gorden-Ozgul, Patricia E
> INET: gorden_at_bnl.gov
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Igor Neyman
  INET: ineyman_at_perceptron.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Mar 13 2001 - 12:09:22 CST

Original text of this message

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