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

searching for a '

From: Luciano Belotto <luciano_at_nospam.com>
Date: 14 May 2002 20:02:43 GMT
Message-ID: <abrqh3$qpe@dispatch.concentric.net>


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:02:43 CDT

Original text of this message

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