ORACLE检查字符是否为数字

select gid,gname from t_dw_fltelecomproduct_all 

where regexp_like(substr(gid,1,1) ,'[0-9]')  

group by gid,gname

 

 

 

-- 判断一个字符串是否为全数字
 and translate(f_channel,'\1234567890','\') is null
 
 select nvl2(translate('1224312321','\1234567890','\'),'is not number','is number') from dual;

你可能感兴趣的:(oracle)