Oracle - Select where field has lowercase characters

前端 未结 6 2139
悲&欢浪女
悲&欢浪女 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条回答
  •  感情败类
    2021-02-12 13:58

    for SQL server where the DB collation setting is Case insensitive use the following:

    SELECT * FROM tbl_user WHERE LEFT(username,1) COLLATE Latin1_General_CS_AI <> UPPER(LEFT(username,1))
    

提交回复
热议问题