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!

How to get the first 6 digits and the last 4 digits in a string ?

RoxyrollersJul 16 2009 — edited Jul 16 2009
Greetings folks.

A quick question and probably quite simple for a lot of guys out there.

I have a string that could be anywhere between 15 to 20 characters ( Not a fixed length )

I want it to be split into 3 segments.
Segment 1 : 123456 ( 6 digits )

Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).

Segment 3 : 1234 ( 4 digits )
Any help is appreciated !

Thanks
This post has been answered by 21205 on Jul 16 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2009
Added on Jul 16 2009
10 comments
13,304 views