SQL - Find complete word in text

后端 未结 2 940
耶瑟儿~
耶瑟儿~ 2021-01-05 22:23

I have a text column in one of my tables in a MySql DB. i want to get all the records that have a specific word in the text column. for example:

ID,BIO
1, \"         


        
2条回答
  •  星月不相逢
    2021-01-05 23:07

    You may want to look into using full text indexing depending on the amount of data you are using. Otherwise, you can use REGEXP to specific a regular expression to search for the word. You should see this question (and answer) for a way of using REGEXP to find words.

提交回复
热议问题