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!

Alternative to Instr and substr

741728Oct 4 2010 — edited Oct 4 2010
Hello All,
I have a table which contains a clob file which holds data in such a fashion as shown below:

col1,col2,col3,col4:col1,col2,col3,col4:col1,col2,col3,col4:col1,col2,col3,col4:ol1,col2,col3,col4... etc etc

basically I have been using a combination of both instr and substr to pull out the data to be parsed as shown below:

col1,col2,col3,col4
col1,col2,col3,col4
col1,col2,col3,col4
col1,col2,col3,col4
etc etc

However after extensive use it seems to cause massive slowdown, is there another way of doing this which isn't so unwieldy?

NOTE: using vc_arr2 and string_to_table is out of the question as it seems to have a limit to how many rows it can handle.

Any help would be greatly appreciated!

Thanks in Advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2010
Added on Oct 4 2010
2 comments
2,190 views