17,377
社区成员
发帖
与我相关
我的任务
分享
SQL> with tb as
2 (select 'ABC32443' bm from dual union all
3 select '3424/334' from dual union all
4 select '33444' from dual )
5 select bm from tb where not regexp_like(bm,'[[:alpha:]]')
6 /
BM
--------
3424/334
33444
[Quote=引用楼主 coolzdp 的回复:]SQL> select 1 from dual where not regexp_like('32443','[a-z]','i');
1
----------
1
SQL> select 1 from dual where not regexp_like('32443a','[a-z]','i');
1
----------
SQL>
with tmp as
(
select 'ABC32443' col1 from dual union all
select '3424/334' col1 from dual union all
select '33444' col1 from dual)
select * from tmp
where not regexp_like(col1, '[a-z]','i');
COL1
------------
3424/334
33444
select * from table_name where not regexp_like(col_name,'[[:alpha:]]')