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: Using ' character in string in where statement

Re: Using ' character in string in where statement

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Fri, 17 Jan 2003 18:50:36 GMT
Message-ID: <0gYV9.69$dN.7473391@newssvr15.news.prodigy.com>


Christian Svensson wrote:
> Greetings,
>
> I hope someone can help me with this maybe "stupid" question. I have
> looked at otn and in this newsgroup but cant find anything.
>
> If I want to use a ' character in the string in my where statement,
> how do I do then ?
>
> for example select something from some_table where some_col = 'my '
> character'
>
> Thanks for any answers.
>
> Cheers !
>
> /Christian

In sqlplus, you can do something like this:

set escape on
select something from someplace
where publisher = 'O''Reilly \& Associates'; Received on Fri Jan 17 2003 - 12:50:36 CST

Original text of this message

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