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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -