471,083 Members | 1,212 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,083 software developers and data experts.

Difficulty inserting due to &

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' );
Jul 19 '05 #1
1 7684
rp**@yahoo.com (rp_3) wrote in message news:<36**************************@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)
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by James | last post: by
3 posts views Thread by patricia59 | last post: by
1 post views Thread by rp_3 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.