字符串的最后一位是字符或数字 [英] last digit of string is charachter or a number

查看:87
本文介绍了字符串的最后一位是字符或数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

如何在oracle中找到字符串的最后一位是charachter或数字?


谢谢
Manisha



How to find that the last digit of string is charachter or a number in oracle?


Thanks
Manisha

推荐答案

一个变体:
One variation:
select case
       when substr(YourField, length(YourField)) between '0' and '9' then 'Digit'
       else 'non-digit'
       end
from YourTable


使用SUBSTR
Oracle字符串函数 [
Use SUBSTR
Oracle string functions[^]


这篇关于字符串的最后一位是字符或数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆