I got a line in my data base, containing a fields with some names, separated by a ;
.
I am trying to get, with a Select query, as many lines, that there is name in my field.
So, if I got in my DB :
id names
1 john;jack;mike
With this, i must get with this query :
SELECT id, split(names, ';') from table
1 john
1 jack
1 mike
I don't have any other table, so no join.
I write : split(names, ';'), but this is just an example of what I want to do.
But I don't know how to split my field names to do it like ahead.
I don't found any thing to help me, find a way to do it.
Do I need to use a function? Is there a function to do so with oracle?
Thank you.