MariaDB regex working in online regex testers does not work in SELECT WHERE REGEXP

后端 未结 2 651
迷失自我
迷失自我 2021-01-12 15:16

I\'m having a problem a dataset I have been given in bad format E.G fullName column and no breakdown of names I\'m wanting to search where any of the names star

2条回答
  •  耶瑟儿~
    2021-01-12 15:54

    Try using something like this:

    SELECT * FROM `Officers` WHERE `fullName` REGEXP '[[:<:]]J'
    

    See docs: https://dev.mysql.com/doc/refman/5.7/en/regexp.html

提交回复
热议问题