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!

Pick Second Word from string

suzvinoMar 14 2014 — edited Mar 14 2014

How to get the second word of a string. Each word is separated by space. If there is only one word it has to return the first word

Eg:

'abc de fgh ijk' i need to return de

if string is

'abc' i need to return abc

Thanks in Advance

This post has been answered by GregV on Mar 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2014
Added on Mar 14 2014
1 comment
1,595 views