473,396 Members | 1,864 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,396 software developers and data experts.

How to Insert an XML document in DB2??

5
I cant able to insert an XML document in a table of XML datatype in DB2.........


wen i try for this in control center it displays XML document is empty and

when I try for in command editor it displays an error "An unexpected token "END-OF-STATEMENT" was found following.. Expected tokens may include: "<insert_spec>".
SQLSTATE=42601 "

Pls help me .........I have tried a lot but not getting how to store XML document in DB2..........
Kindly inofrm if u came o know.......pls........
Apr 15 '08 #1
3 6988
sakumar9
127 Expert 100+
I cant able to insert an XML document in a table of XML datatype in DB2.........


wen i try for this in control center it displays XML document is empty and

when I try for in command editor it displays an error "An unexpected token "END-OF-STATEMENT" was found following.. Expected tokens may include: "<insert_spec>".
SQLSTATE=42601 "

Pls help me .........I have tried a lot but not getting how to store XML document in DB2..........
Kindly inofrm if u came o know.......pls........

You can refer to the sample SQLLIB/samples/xml/clp/xmlinsert.db2

This sample demonstrates how you can insert XML documents into a table.

Regards
-- Sanjay
Apr 15 '08 #2
inziam
5
You can refer to the sample SQLLIB/samples/xml/clp/xmlinsert.db2

This sample demonstrates how you can insert XML documents into a table.

Regards
-- Sanjay


The site you have given is in different language.........
So I am on the same old stage............
Cant able to insert XML document...............on DB2 version 9.1
Plsssss..........Help me.........Plssss.........
When I create an XML column type an tried to insert XML document it displays a message XML document not found...........

Pls help me Sir..............


Regards Inzia
Apr 25 '08 #3
Simple example:

Expand|Select|Wrap|Line Numbers
  1. create table testxml (id int not null, xmlcol xml)
Expand|Select|Wrap|Line Numbers
  1. insert into testxml values (1, '<xml>test data</xml>')
May 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Brian Marasca | last post by:
I know that Oracle has extensive support for XML, but I can't seem to find any documentation on using an XML document to do multiple inserts into a relational table. Note, I'm *not* trying to...
4
by: Sergio del Amo | last post by:
i, I have the next html page <html> <head> <script> <!-- function insertcode() { var code ="<p> blablabal babala babababab</p><h1>here comes header</h1><span>fadfafa<a...
14
by: Andre | last post by:
Hello Can anyone help me translate this from access so that it can work in mssql (i need to get next value, but cannot use identity as if row is deleted, another must get new next column number...
1
by: sudhaoncyberworld | last post by:
I have scenario like below, in table we have insert row & in row we have insert cell, but i need to insert an table element in td, Here in td i have tbl1 & tbl2 as child and now i want to insert...
11
by: ericms | last post by:
Can anybody show me how to insert a CDATA section using XPathNavigator ? I have tried the follwing with no luck: XmlDocument docNav = new XmlDocument(); docNav.LoadXml(xmlString);...
2
by: mirandacascade | last post by:
O/S: Win2K Vsn of Python: 2.4 Example: <a> <b createAnotherWhenCondition="x"> <c>text for c</c> <d>text for d</d> </b>
1
by: solomon_13000 | last post by:
connection.asp: <% Sub RunQueryString (pSQL,parms) on error resume next Set conn = Server.CreateObject("ADODB.Connection") conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &...
1
by: bodilima | last post by:
Dear All, I'm new to this! I wanna insert selected values from form "SaveModel" to form "SaveMake" <input name="makeID" value="<<<<need to insert here(x)>>>>"> & <input name="make"...
1
by: Pedro Rosas Silva | last post by:
Hi everyone, Is anybody aware of a way how to insert an image in a WordML document programmatically, through C#? I have a C# application that loads into memory a WordML document...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.