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!

Split String

842030Feb 23 2011 — edited Feb 24 2011
gurus,
i have table like

id name
1 Offshore-Location1
2 Offshore-Location2
3 Marine-Boat1
4 Marine-Ship01

i want to select and split name field so i have result like

Offshore
Offshore
Marine
Marine

in postgre they have function split_part, but how can i do in oracle.

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2011
Added on Feb 23 2011
9 comments
444 views