标签: mysql full-text-search match against
我有一个关键字表,我需要与另一个数据表匹配,并获得匹配的关键字的计数。由于匹配查询的“反对”参数不采用列,只有文字字符串,有没有办法让以下查询有效?
SELECT tbl.kw_keyword, COUNT(*) FROM (SELECT * FROM data a, keywords b WHERE MATCH(a.dd_text) AGAINST (b.kw_keyword)) AS tbl;