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: sqlplus and the ampersand

Re: sqlplus and the ampersand

From: Matthias Gresz <GreMa_at_t-online.de>
Date: 1997/09/18
Message-ID: <5vr17b$fuu$1@news01.btx.dtag.de>#1/1

Jenny Farnham wrote:
>
> How do you keep the ampersand "&"
> from literally being interpreted
> in an IN statement. When the sqlplus
> code is run... it is prompting the
> user for a value. For example:
>
> select count(*)
> from companys
> where name in ('Baskin & Robbins');
>
> This will generate a prompt. We tried
> double quotes too (ex. ")
>
> Thanks in advance.
>

Hi,

ever tried chr(integer)-function?

select count(*)
from companys
where name in ('Baskin ' || chr(xx) || ' Robbins');  

-- 
Regards

M.Gresz    :-)
Received on Thu Sep 18 1997 - 00:00:00 CDT

Original text of this message

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