简体   繁体   English

匹配 IN 连接条件

[英]match against IN join conditon

How to satisfy below condition on join without where condition?如何在没有 where 条件的情况下满足以下条件?

SELECT *
FROM xyz
JOIN abc ON 
  MATCH(xyz.p) AGAINST(abc.h,abc.i,abc.j IN BOOLEAN MODE)

here xyz AND abc represent TABLES xyz.p, abc.h,abc.i,abc.j represent COLUMNS这里 xyz AND abc 代表 TABLES xyz.p, abc.h,abc.i,abc.j 代表 COLUMNS

It can be a little tricky to find the relevant documentation, but you cannot do what you want.找到相关文档可能有点棘手,但你不能做你想做的事。 In the section on full text restrictions :全文限制部分

  • The argument to AGAINST() must be a string value that is constant during query evaluation. AGAINST() 的参数必须是在查询评估期间保持不变的字符串值。 This rules out, for example, a table column because that can differ for each row.例如,这排除了表列,因为每行可能不同。

I don't think MySQL offers an efficient way to do what you want.我不认为 MySQL 提供了一种有效的方法来做你想做的事。 However, if you ask another question, it might be possible to solve your particular problem.但是,如果您提出另一个问题,则可能会解决您的特定问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM