在匹配MySQL中搜索多个术语

时间:2015-01-25 23:19:48

标签: mysql match

如何搜索“Red Carpet”参数?

SELECT videos.*
FROM videos
WHERE MATCH(tags) AGAINST('+Red Carpet -Tshirt' IN BOOLEAN MODE) 

1 个答案:

答案 0 :(得分:1)

应以"个字符引用短语:

WHERE MATCH(tags) AGAINST('+"Red Carpet" -Tshirt' IN BOOLEAN MODE)