How to get rightmost 10 places of a string in oracle

后端 未结 4 995
旧时难觅i
旧时难觅i 2021-01-03 18:24

I am trying to fetch an id from an oracle table. It\'s something like TN0001234567890345. What I want is to sort the values according to the right most 10 posit

4条回答
  •  长发绾君心
    2021-01-03 19:15

    You can use SUBSTR function as:

    select substr('TN0001234567890345',-10) from dual;
    

    Output:

    4567890345
    

提交回复
热议问题