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!

sql to get a value surrounded by a character

Muhammad.RizwanMay 21 2015 — edited May 21 2015

Hi,

I've a string which is surrounded by # and I want to get value within this character.

for example, my string is dd#1234abc#efg and I want to extract value 1234abc from it.


There is no positioning for the string so can't get value between (for instance) 3rd and 11th position but it will always be surrounded by #.

please can you help?

thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2015
Added on May 21 2015
7 comments
237 views