Php 如何使用MySQL全文搜索短语而不是使用LIKE

Php 如何使用MySQL全文搜索短语而不是使用LIKE,php,mysql,sql,full-text-search,Php,Mysql,Sql,Full Text Search,如何使用mysql全文搜索来搜索短语而不是类似的短语: SELECT description FROM t WHERE info LIKE "%Search phrase one%" OR info LIKE "%Phrase second%" OR info LIKE "%Another phrase with more words%" 以下是搜索短语的示例查询: SELECT * FROM table WHERE MATCH ( col1,col2,col3 ) AGAINST ('

如何使用mysql全文搜索来搜索短语而不是类似的短语:

SELECT description FROM t WHERE info LIKE "%Search phrase one%" OR  info LIKE "%Phrase second%"  OR info LIKE "%Another phrase with more words%"

以下是搜索短语的示例查询:

SELECT * FROM table WHERE MATCH ( col1,col2,col3 ) 
AGAINST ('"some words" "another phrase"' IN BOOLEAN MODE);
更多信息请访问:

查找文档中的匹配()和对照()。为什么
“word1”“word2”“word3”
而不仅仅是
“word1 word2 word3”