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: Kjetil Skotheim <kjetilskotheim_at_iname.com>
Date: Wed, 01 Nov 2000 18:16:30 +0100
Message-ID: <3A005DFE.CFC7D711@iname.com>

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
Received on Wed Nov 01 2000 - 11:16:30 CST

Original text of this message

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