Skip to Main Content

SQL & PL/SQL

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.

split a column

714213Jul 27 2010 — edited Jul 29 2010
table: vendor
v_seq number (PK);
v_id number;
v_case varchar2(50);

Current Vendor Table has data like the following
v_seq	v_id	v_case
1	v001	c100&c1001&c1010
2	v002	c109&c107......
would like to split the data into the following and stored it back to the table( or a different table) ,
I have no way to know how many v_case per v_id
v_seq	v_id	v_case
1	v001	c100
2	v001    c1001
3	v001	c1010
4	v002	c109
5	v002	c107
I attempt to use regular expression but didn't really got my answer. can u help ?



Tai
This post has been answered by jihuyao on Jul 28 2010
Jump to Answer

Comments

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

Post Details

Locked on Aug 26 2010
Added on Jul 27 2010
14 comments
1,985 views