Hi,
[highlight #FCE94F]98765,AB123,3;[/highlight][highlight #8AE234]98765,AD243,2;[/highlight][highlight #EF2929]98765,BG153,5;[/highlight]
The above text data would have the following fields ID, SKU, QTY followed by ;
There could be multiple records with all the 3 fields in a line with ; separator.
I want to push the data the into a table in the following manner. i.e. row wise with # of quantity broken into 1.
So therefore the 1st record has 3 Qty, it will be broken into 3 records/rows with ID & SKU repeated.
ID SKU QTY
[highlight #FCE94F]98765 AB123 1
98765 AB123 1
98765 AB123 1[/highlight]
98765 AD243 1
98765 AD243 1
[highlight #EF2929]98765 BG153 1
98765 BG153 1
98765 BG153 1
98765 BG153 1
98765 BG153 1[/highlight]
How can I identify the separator, divide # of quantity to multiple rows to be used in stored procedure?
I'm using Oracle 11g.
TIA,
RAJ
[highlight #FCE94F]98765,AB123,3;[/highlight][highlight #8AE234]98765,AD243,2;[/highlight][highlight #EF2929]98765,BG153,5;[/highlight]
The above text data would have the following fields ID, SKU, QTY followed by ;
There could be multiple records with all the 3 fields in a line with ; separator.
I want to push the data the into a table in the following manner. i.e. row wise with # of quantity broken into 1.
So therefore the 1st record has 3 Qty, it will be broken into 3 records/rows with ID & SKU repeated.
ID SKU QTY
[highlight #FCE94F]98765 AB123 1
98765 AB123 1
98765 AB123 1[/highlight]
98765 AD243 1
98765 AD243 1
[highlight #EF2929]98765 BG153 1
98765 BG153 1
98765 BG153 1
98765 BG153 1
98765 BG153 1[/highlight]
How can I identify the separator, divide # of quantity to multiple rows to be used in stored procedure?
I'm using Oracle 11g.
TIA,
RAJ