oracle 查詢字段中非數字的記錄

--1.正則判斷,適用於10g以上版本
--非正整數 
select 字段 from 表 where regexp_replace(字段,'\d','') is not null;
--非數值類型
select 字段 from 表 where regexp_replace(字段,'^[-\+]?\d+(\.\d+)?$','') is not null;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章