By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,611 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,611 IT Pros & Developers. It's quick & easy.

Difficulty inserting due to &

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.