I am trying to find how to translate the following MySQL query into Zend Db Table Select:
SELECT ColA,ColB,ColC FROM MyTable FORCE INDEX(ColA,ColB) WHERE ColA = 'val0002' AND ColB = 'val0045'
I am trying to use something like this:
$select = $dbTable->select() ->from('MyTable',array('ColA','ColB') ->forceIndex(array('ColA','ColB')) ->where("ColA = 'val0002'") ->where("ColB = 'val0045'");
I found "forceIndex (array ('ColA', 'ColB'))" on the forum, but it does not work :(
and thanks for helping me :)
mysql zend-framework zend-db
Salem
source share