ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 三种方法判断字符串中是否含有字母

三种方法判断字符串中是否含有字母

原创 Linux操作系统 作者:jennyliuxu 时间:2010-10-11 15:25:46 0 删除 编辑

方法一:
select distinct b.securno,substr(b.securno,2)
  from bond_deal_detail b
 where b.securno!=translate(b.securno,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ','0123456789');

方法二:
select distinct securno,substr(b.securno,2) from bond_deal_detail b
        where upper(b.securno)!=b.securno
        or lower(b.securno)!=b.securno

方法三:
select distinct b.securno from bond_deal_detail b where ltrim(b.securno,'0123456789') is not null;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23445793/viewspace-675711/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2010-03-07

  • 博文量
    21
  • 访问量
    32007