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: Leslie_B_DreyerKalra <lbd_at_techiesinc.com>
Date: 1997/09/23
Message-ID: <34281D06.3C0@techiesinc.com>#1/1

Anon wrote:
>
> Before your select statement, issue the following SQL*Plus command:
> SET DEFINE $
>
> This changes the replacement character from the default of & to a $.
> --
> Phillip Bump

Or, if you know you're not going to prompt for anything, just do:

SET DEF OFF That turns off the capability altogether. You can always turn it back on again if you need it. Then you don't have to worry about embedded '$' signs, either...:)

> Jenny Farnham <farnham_at_spot.Colorado.EDU> wrote in article
> <5vpk76$rq3_at_peabody.colorado.edu>...
> > 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.
> >
> >
> >
> >
 

-- 
Leslie Dreyer Kalra
Techies, Inc.
lbd_at_techiesinc.com
Received on Tue Sep 23 1997 - 00:00:00 CDT

Original text of this message

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