Re: Difficulty inserting due to &

From: Alex Filonov <afilonov_at_yahoo.com>
Date: 20 Aug 2003 07:29:10 -0700
Message-ID: <336da121.0308200629.5a53e83_at_posting.google.com>


rp_3_at_yahoo.com (rp_3) wrote in message news:<36bdf685.0308191313.4b14414d_at_posting.google.com>...
> Hello,
>
> I am attempting to insert the following but am having difficulty with
> the "&" symbol being accepted as a literal character. If I preced the
> "&" with a backslash "\", when I execute via sqlplus, the script waits
> for input, however if I execute via sql window in TOAD, the record is
> inserted as expected.
>
> Any and all suggestions greatly appreciated,
> Richard
>
> sourceid = number(18)
> url = varchar2(250)
> name = varchar2(50)
>
> INSERT INTO SOURCE ( SOURCEID, URL, NAME ) VALUES (
> 63, '<http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=nucleotide&cmd=search&term=>',
> 'GenBank' );

Use:
set scan off
or
set define off
or
set escape \ on (you need to escape & with a \ in this case) Received on Wed Aug 20 2003 - 16:29:10 CEST

Original text of this message