【发布时间】:2015-12-15 02:33:20
【问题描述】:
我在表中有以下数据,
id Description Category
1 I am Desc with printer main category
2 I am desc with test test category
3 new printer desc third category
4 new test category printer category
等等……
我想在他们的描述字段中找到具有相同单词的计数(可以是打印机,但不是预定义的)。 对于前输出应该是:
Total Word which is same
2 printer
2 test
我尝试使用带有布尔选项的 http://dev.mysql.com/doc/refman/5.7/en/fulltext-boolean.html 示例,但它没有提供所需的输出。
我给出的例子是打印机,它可以是任何东西。 我不想在任何地方的查询中指定这个词,因为它可以是任何东西。 只有在任何地方都有相同单词的描述才能输出。
提前致谢。
【问题讨论】: