--1.正则判断,适用于10g以上版本 --非正整数 select 字段 from 表 where regexp_replace(字段,'\d','') is not null; --非数值类型 select 字段 from 表 where regexp_replace(字段,'^[-\+]?\d+(\.\d+)?$','') is not null;
oracle 查询字段中非数字的记录
最新推荐文章于 2024-04-17 17:05:55 发布
--1.正则判断,适用于10g以上版本 --非正整数 select 字段 from 表 where regexp_replace(字段,'\d','') is not null; --非数值类型 select 字段 from 表 where regexp_replace(字段,'^[-\+]?\d+(\.\d+)?$','') is not null;