0
對於like
搜索顯示搜索詞,我會做 -的MySQL [全文檢索] - 用來獲取特定結果
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);