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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Problem with ampreson(&)

Re: Problem with ampreson(&)

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 02 Nov 2000 18:53:01 +0800
Message-ID: <3A01478D.7E77@yahoo.com>

Kjetil Skotheim wrote:
>
> Bhargav wrote:
> >
> > Hai,
> >
> > I want to insert some text with ampreson(&) value in a varchar2 field.
> > Please help me out.
> >
> > Bye,
> > Bhargav
>
> I guess you are using Sqlplus and when you try something like:
>
> insert into mytable values ('text&more');
>
> ...you're asked to fill in the &more part. This is because
> sqlplus interprets &... as sqlplus-variables. Solution:
>
> insert into mytable values ('text'||chr(38)||'more);
>
> --
> Kjetil Skotheim
> kjetilskotheim_at_iname.com

or just do

SQL> set define off

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk (mirrored at
http://www.oradba.freeserve.co.uk)

"Early to bed and early to rise, 
 makes a man healthy, wealthy and wise." - some dead guy
Received on Thu Nov 02 2000 - 04:53:01 CST

Original text of this message

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