我想爲了得到這樣的查詢延長了Zend庫這一個:http://framework.zend.com/issues/browse/ZF-7570Zend修改。添加MySQL的FORCE INDEX提示
但是我有:
SELECT * FROM item i **force index(ix)** ORDER BY date LIMIT 100;
我這個Zend的論壇問題解決方案角落找尋工作一個問題。看看下面的代碼。
$select->forceIndex('index');
echo $select->assemble();
// I get the right SELECT query with the force index hint
$this->fecthAll($select);
// The server execute a wrong SELECT query without the force index hint
有些幫助嗎?
只是猜測..'$ this-> fetchAll($ select-> assemble())'? – MonkeyMonkey