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

方法一:
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博客 ” ,链接:http://blog.itpub.net/23445793/viewspace-675711/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23445793/viewspace-675711/

你可能感兴趣的:(三种方法判断字符串中是否含有字母)