Hi,
I have a very simple xml structure that could have up 100 parts:
I also have a pl/sql collection like this:
TYPE myParts IS TABLE OF VARCHAR2(10);
Is it possible to BULK COLLECT each part number attribute into the myParts table?
This doesn't work, but I hope there's something like this that will:
Is this possible?
Thanks for the help,
Mike
I have a very simple xml structure that could have up 100 parts:
Code:
<PARTS>
<PART part_number="331077-05"/>
<PART part_number="331030-05"/>
<PART part_number="331552-05"/>
</PARTS>
I also have a pl/sql collection like this:
TYPE myParts IS TABLE OF VARCHAR2(10);
Is it possible to BULK COLLECT each part number attribute into the myParts table?
This doesn't work, but I hope there's something like this that will:
Code:
SELECT t.xml.extract('//PART/@part_number/text()').getStringVal()
BULK COLLECT
INTO myParts
FROM catalog t
WHERE product = 'widget';
Is this possible?
Thanks for the help,
Mike