Hello,
I'm trying to use the regexp_substr function in Oracle 10 to split a string into several lines (semicolon is the delimiter).
So I'm using:
Select Site_List, trim(regexp_substr(Site_List, '[^;]+, 1, level)) FROM (Select Site_List FROM ALL_SITES) Connect by trim(regexp_substr(Site_List, '[^;]+, 1, level)) is not null
When I run this in SQL Developer, it's working (in a few seconds, but SQL Developer only shows the 50 first results).
Now, if I try to use a count(*) on this or to insert the query result in a table, it takes forever (I have only 375 lines in ALL_SITES table).
Is there something I did wrong ?
Thanks for your help.