Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > V9.1 Insert Tri...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 8795 of 9055
Post > Topic >>

V9.1 Insert Trigger to extract attribute from the XML document being

by Rajesh Kumar Joshi <rajeshjoshiji@[EMAIL PROTECTED] > Apr 15, 2008 at 09:52 PM

I have a  test table
//---------------------------
name    varchar(32)
version  varchar(16)
profile   XML
//---------------------------
The content of the XML file is
<sampleprofile  name="joe"  version="123">
        <phone>123456789</phone>
...
...
</sampleprofile>
//------------------------------------

While inserting a new row , I want to populate the 'name' and
'version' columns from the content of the XML data.
Is it possible to write a Trigger to manupulate the XML data before
its inserted? To make thing more interesting the table has a unique
index on name+version.
 




 3 Posts in Topic:
V9.1 Insert Trigger to extract attribute from the XML document b
Rajesh Kumar Joshi <ra  2008-04-15 21:52:04 
Re: V9.1 Insert Trigger to extract attribute from the XML docume
Serge Rielau <srielau@  2008-04-16 11:28:15 
Re: V9.1 Insert Trigger to extract attribute from the XML docume
Rajesh Kumar Joshi <ra  2008-04-16 11:57:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 16:14:45 CDT 2008.