sql - How to get rightmost 10 places of a string in oracle -


i trying fetch id oracle table. it's tn0001234567890345. want sort values according right 10 positions (e.g. 4567890345). using oracle 11g. there function cut rightmost 10 places in oracle sql ?

thanks in advance

tismon

you can use substr function as:

select substr('tn0001234567890345',-10) dual; 

output:

4567890345 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -