Re: Difficulty inserting due to &

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 19 Aug 2003 18:58:36 -0700
Message-ID: <2687bb95.0308191758.35177234_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' );

Pull your SQLPlus manual out and look up set define off

That should do the trick in SQLPlus

HTH -- Mark D Powell -- Received on Wed Aug 20 2003 - 03:58:36 CEST

Original text of this message