【发布时间】:2015-01-21 06:25:26
【问题描述】:
我是 CakePHP 的新手,现在无法转换查询:
SELECT *,
MATCH (title, post, tags) AGAINST ('dialux' IN BOOLEAN MODE) as REL
FROM posts
WHERE MATCH (title, post, tags) AGAINST ('dialux' IN BOOLEAN MODE)
ORDER BY REL DESC;
在这样的情况下:
$this->Post->find('all', xxx);
有什么想法吗?谢谢。
【问题讨论】:
-
谢谢,但我确实需要这个表格
$this->Post->find('all', xxx);。 -
那里有关于如何实现 find(all) 的文档。它与 find(first) 相同。再读一遍,然后试一试。
标签: php sql cakephp match-against