MySql: Count amount of times the words occur in a column

后端 未结 5 1306
心在旅途
心在旅途 2021-01-06 19:13

For instance, if I have data in a column like this

data
I love book
I love apple
I love book
I hate apple
I hate apple

How can I get result

5条回答
  •  孤城傲影
    2021-01-06 19:31

    If you want to perform such kind of text analysis, I would recommend using something like lucene, to get the termcount for each term in the document.

提交回复
热议问题