PHP | SQL自然语言模式与两个查询

时间:2017-08-29 14:13:03

标签: php mysql

我只是想知道......

这有什么区别:

SELECT * FROM table_name 
WHERE MATCH (col1,col2,col3) 
AGAINST ('keyword' IN NATURAL LANGUAGE MODE);

和此:

SELECT (...), MATCH ( description ) AGAINST ( '$searchname' ) AS relevance 
FROM places 
WHERE MATCH ( description ) AGAINST ( '$searchname' )
ORDER BY relevance DESC

两者都给我们按相关性排序的结果吗?

0 个答案:

没有答案