对于like
搜索,我会做-
select name,"term1" as searchterm from articles where name like "%term1%"
union
select name,"term2" as searchterm from articles where name like "%term2%"`
我如何使用OR
全文搜索在搜索中获取特定结果?有没有办法做到这一点 -
SELECT name,searchterm FROM articles WHERE MATCH (name)
AGAINST ('term1 term2' IN BOOLEAN MODE);