我正在环顾四周,并想知道我将如何使用PHP和MySQL在我的网站上创建相关或类似的帖子?如何做到这一点的基本例子是什么?
我的表格中有一个全文字段.其中一行是:
"this is the dog that ran over there"
Run Code Online (Sandbox Code Playgroud)
我有以下mysql语句:
SELECT *
FROM `table`
WHERE MATCH (column) AGAINST ('dog that ran')
Run Code Online (Sandbox Code Playgroud)
...返回0条记录
SELECT *
FROM `table`
WHERE `column` LIKE '%dog that ran%'
Run Code Online (Sandbox Code Playgroud)
...返回1条记录
为什么不同?他们应该都返回1条记录,对吗?