MySQL regex query case insensitive

后端 未结 4 1640
星月不相逢
星月不相逢 2021-02-14 16:56

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:11

    Have you tried:

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

提交回复
热议问题