oracle 截取字符串最后几位

select substr('12345',greatest( -位数,-length('12345')),位数) from dual

(ps:位数是数字)

猜你喜欢

转载自skyfar666.iteye.com/blog/1850271
今日推荐