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: searching for a '

Re: searching for a '

From: Richard Kuhler <noone_at_nowhere.com>
Date: Tue, 14 May 2002 20:23:32 GMT
Message-ID: <8neE8.401$DF2.208306@twister.socal.rr.com>


The standard ' escape sequence is ''. In other words...

AND R."NAME" = ''''; Richard

Luciano Belotto wrote:
>
> Asking for help in searching a varchar2 field for a ' character. I try using
> the escape character in SQL plus as a / but no luck:
>
> SQL> show escape
> escape "\" (hex 5c)
>
> SQL> select * from "ODB"."RELATION_MASTER" R WHERE R."RELATION_TRANSACTION"
> = 'EMPLOYEE' AND R."NAME" = '\'' ;
> ERROR: ORA-01756: quoted string not properly terminated
>
> I'd also like to be able to put that query in a cursor in a stored
> procedure, but it doesn't let me compile that in Enterprise Manager.
>
> I'm using 9i on Win2000
>
> --
> Luciano Belotto
> replace spam with traxsoftware for e-mail
Received on Tue May 14 2002 - 15:23:32 CDT

Original text of this message

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