I need to write a procedure to normalize a record that have multiple tokens concatenated by one char, I need to obtain these tokens splitting the string and insert each one as a new record in a table. Does Oracle have something like a "split" function?
+1
A:
You have to roll your own. E.g.,
http://articles.techrepublic.com.com/5100-10878_11-5259821.html
http://www.builderau.com.au/architect/database/soa/Create-functions-to-join-and-split-strings-in-Oracle/0,339024547,339129882,00.htm
RedFilter
2010-09-14 15:57:55
+4
A:
There is apex_utility.string_to_table - see my answer to this question.
Also, prior to the existence of the above function, I once posted a solution here on my blog.
Tony Andrews
2010-09-14 15:59:44
Thanks for the tip, sadly, I cannot use that package, so I ended up using the functions posted by redFilter.
Sam
2010-09-14 17:08:43