我希望能够计算特定列出现的单词频率。
如果我想计算匹配句子的频率,则此代码有效,但我需要它来搜索单个单词。
SELECT DISTINCT `Text`, COUNT(*) AS num
FROM MyTable
GROUP BY `Text`
ORDER BY num DESC
我希望能够计算特定列出现的单词频率。
如果我想计算匹配句子的频率,则此代码有效,但我需要它来搜索单个单词。
SELECT DISTINCT `Text`, COUNT(*) AS num
FROM MyTable
GROUP BY `Text`
ORDER BY num DESC