0
這裏是我的查詢:Zend框架正常查詢Zend_Db_Table類
"SELECT * FROM `posts` WHERE MATCH(title, text) AGAINST('".$word."' IN BOOLEAN MODE)";
我怎樣才能做到這一點與Zend_Db_Table類,我的意思是($這個 - >選擇()...)
祝商祺!
這裏是我的查詢:Zend框架正常查詢Zend_Db_Table類
"SELECT * FROM `posts` WHERE MATCH(title, text) AGAINST('".$word."' IN BOOLEAN MODE)";
我怎樣才能做到這一點與Zend_Db_Table類,我的意思是($這個 - >選擇()...)
祝商祺!
$dbTable = new Default_Model_DbTable_Posts();
$select = $dbTable->select()->where('MATCH(title, text) AGAINST(? IN BOOLEAN MODE', $word);
關閉反對:
$dbTable = new Default_Model_DbTable_Posts();
$select = $dbTable->select()->where('MATCH(title, text) AGAINST(? IN BOOLEAN MODE)', $word);