MySQL regex query case insensitive

后端 未结 4 820
天涯浪人
天涯浪人 2021-02-14 16:25

In my table I have firstname and last name. Few names are upper case ( ABRAHAM ), few names are lower case (abraham), few names are character starting with ucword (Abraham).

4条回答
  •  不知归路
    2021-02-14 17:17

    Have you tried:

    SELECT * FROM `test_tbl` WHERE LOWER(cus_name) REGEXP '^[abc]';
    

提交回复
热议问题