Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> FW: Help with syntax please...
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).Received on Tue Mar 13 2001 - 11:12:42 CST
![]() |
![]() |