Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to use two nested sequence-next-val functions for one XML

666109Jan 22 2009
Hii All,
I am having a XML file which contains a multiple group of a child elements. I am inserting all these rows to a database table.
My problem is that I want to map a sequence to a database column(batch_num) which will commom for whole XML file records(this can be simlply done using sequence-next-val).Now there is another database column which has diff. sequence value for the same batch_num.
Like I want to do..
XML
<person>
<name>INDIA</name>
<hobbies>movie</hobbies>
<hobbies>music</hobbies>
</person>

table:
'batch_num' 'seq_num' 'name' 'hobbies'
1 4 INDIA movie
1 5 INDIA music

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 19 2009
Added on Jan 22 2009
0 comments
366 views