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 last 50 characters in a string

user518071May 16 2014 — edited May 16 2014

Hi,   I need to get last 50 characters at a chunk of 25 characters each in to two columns   If the notes column has less than 50 characters for ex :43 Then I need to get Last 25 in to one column and remaining (18 chars) into second column.     I tried using substr and length functions first column is fine but second column has an issue: select substr('ABCDEF GHIJ',length('ABCDEF GHIJ')-25,25) from dual; Thanks, Kiran

This post has been answered by BrunoVroman on May 16 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2014
Added on May 16 2014
6 comments
2,326 views