Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: convert delimited string to rows ?
Sunil wrote:
> I have a string
> 'rob:bob:tod:rod:mod'
>
> can I use any function to convert this into rows so that I can do something
> like
> SQL> select * from some_funct('rob:bob:tod:rod:mod')
>
> and get :-
>
> rob
> bob
> tod
> rod
> mod
>
> 5 rows selected.
>
> as output ?
>
> Thanks,
> Sunil.
If you use REPLACE to replace the colons with commas you could turn it all into a PL/SQL table with DBMS_UTILITY.COMMA_TO_TABLE.
Daniel Morgan Received on Mon Jun 03 2002 - 10:37:55 CDT
![]() |
![]() |