Oracle - Select where field has lowercase characters

前端 未结 6 2056
悲&欢浪女
悲&欢浪女 2021-02-12 13:32

I have a table, users, in an Oracle 9.2.0.6 database. Two of the fields are varchar - last_name and first_name.

When rows are inserted into this table, the first name a

6条回答
  •  -上瘾入骨i
    2021-02-12 13:58

    If you are looking for Oracle 10g or higher you can use the below example. Consider that you need to find out the rows where the any of the letter in a column is lowercase.

    Column1
    .......
    MISS
    miss
    MiSS
    

    In the above example, if you need to find the values miss and MiSS, then you could use the below query

    SELECT * FROM YOU_TABLE WHERE REGEXP_LIKE(COLUMN1,'[a-z]');
    

提交回复
热议问题