Mysql 全文搜索生成错误的结果

Mysql 全文搜索生成错误的结果,mysql,sql,full-text-search,Mysql,Sql,Full Text Search,在一个查询中,我在两个不同的表中使用全文搜索。这会产生错误的结果 select c.*, s.s_name, s.logo, s.s_slug, cm.coupon_code, cm.c_shorturl, cm.c_shorturl_id from ci_coupons c left join ci_stores s on s.store_id = c.store_id left join ci_coupons_mapper cm on cm.coupon_id = c.coupon_i

在一个查询中,我在两个不同的表中使用全文搜索。这会产生错误的结果

select c.*, s.s_name, s.logo, s.s_slug, cm.coupon_code, cm.c_shorturl, cm.c_shorturl_id 
from ci_coupons c 
left join ci_stores s on s.store_id = c.store_id 
left join ci_coupons_mapper cm on cm.coupon_id = c.coupon_id 
where c.c_link_type like "%Banner%" 
      and c.c_width='300' 
      and match(c.c_name) against('+trend +micro') or match(s.display_name) against('+trend +micro')  

order by c.coupon_id desc
在上面的查询中,我正在
c.c_name
s.display_name
字段中搜索
+trend+micro
,但我希望得到
c_link_type
的结果。但我得到了这个结果


那有
c\u link\u type
空白,这是错误的,这是因为全文,有人能告诉我正确的方向吗?

根据您截图中提供的数据,我能看到的最佳猜测是,您缺少了以下方面:

and (match(c.c_name) against('+trend +micro') or match(s.display_name) against('+trend +micro'))
我打赌你的s.display\u name专栏中有“Trend Micro”