这是我的问题:
"SELECT * FROM `posts` WHERE MATCH(title, text) AGAINST('".$word."' IN BOOLEAN MODE)";
如何使用Zend_Db_Table执行此操作,我的意思是($ this-> select()...)
最诚挚的问候!
答案 0 :(得分:3)
$dbTable = new Default_Model_DbTable_Posts();
$select = $dbTable->select()->where('MATCH(title, text) AGAINST(? IN BOOLEAN MODE', $word);
答案 1 :(得分:1)
关闭反对:
$dbTable = new Default_Model_DbTable_Posts();
$select = $dbTable->select()->where('MATCH(title, text) AGAINST(? IN BOOLEAN MODE)', $word);