473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 7816
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
I am in the process of running my site through WC3 validation. I assume the validator at www.w3c.org cant accept cookies and so PHP is attaching &PHPSESSID=lasklijasj09jsad (or similar) to my...
3
by: patricia59 | last post by:
Can someone suggest a really elementary learning forum for vb.net? I am trying to learn VB.net web in conjunction with MS Sql data access. My previous experience has been with desktop databases,...
2
by: sck10 | last post by:
Hello, I have a SQL Server 2K table with a field set to currency. When I try to insert or update a FormView, I get the following error: Disallowed implicit conversion from data type nvarchar...
6
by: DWrek | last post by:
Here is my problem. I have an XML document that is returned to me by a third party service. The XML document contains results for a search but only lists a maximum of 10 results. If there are any...
0
by: Kushwaha | last post by:
Hi, Any buddy help me to inserting multiple rows, Editing them, or deleting them in a any type of grid. I don't want to use any type of text box, combo box.
1
by: nishac | last post by:
I am using fckeditor 2.3.The problem is that i use shift-enter between paragraphs.But when i see it in the browser I can see double space instead of single space. I noticed that the source of...
1
by: rp_3 | last post by:
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...
1
by: DanielLauJJ | last post by:
When inserting a record into a table, I want SQL Server to generate a number automatically for the Primary Key. (e.g. OrderID is 1, 2, 3 and so on) How to do it? (This behavior is similar to the...
1
by: nmsreddi | last post by:
HI Friends i am using sqlserver2005 . I have column in my table with xml DataType .and while i am inserting data into it ,if '&' is there in data it is giving xml parser error as "XML...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.