Můžete použít SUBSTR fungovat jako: select substr('TN0001234567890345',-10) from dual; Výstup: 4567890345