Oracle SQL - REGEXP_LIKE contains characters other than a-z or A-Z

前端 未结 4 1401
耶瑟儿~
耶瑟儿~ 2020-12-14 08:06

I would like to create a query where I select all records which contain characters that are not a-z or A-Z

so something like this

SELECT * FROM mytable

4条回答
  •  庸人自扰
    2020-12-14 09:00

    Try this:

    select * from T_PARTNER 
    where C_DISTRIBUTOR_TYPE_ID = 6 and
    translate(C_PARTNER_ID, '.1234567890', '.') is null;
    

提交回复
热议问题