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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL 'ESCAPE' Problem

Re: SQL 'ESCAPE' Problem

From: Marty <anon_at_home.comm>
Date: 1997/07/02
Message-ID: <01bc871b$7b61b940$d0567ec2@cavett.globalnet.co.uk>#1/1

To specify embedded quotation marks in a search string, precede the quotation mark with another one e.g.

select loc_description
where loc_description like 'Joe''s%'
/

to search for the string: Joe's%

Hope this solves the problem, regards         

These views are my own and not those of my employer. Normal conditions apply.
nb. anonymous return address used - please replace reply address with those given above.

Andre Allen <NoSpam_at_interaccess.com> wrote in article <5p47ir$2ak_002_at_news.interaccess.com>...
> Hello Everyone
>
> I am having trouble with the following SQL Statement
>
> select loc_description
> where loc_description like 'Joe^'s%'
> escape '^'
>
> It seems that I can use the escape character on anything other than a
 single
> quote mark. The problem is, in mu customer table, I need to track and
> search for names like "Joe's computers" or "Bill's hot dogs". Am I doing
 

> something wrong?
>
> Any responses would be appreciated
>
> Andre Allen
> NoSpam_at_interaccess.com
> to reply, Please replace "NoSpam" with "andre"
>
  Received on Wed Jul 02 1997 - 00:00:00 CDT

Original text of this message

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