1
我需要找到findManyToManyRowset與秩序和組選擇交集表。zend findManyToManyRowset subselect group by
SQL交叉口子選擇的模樣:
$order = "select *
from intersection
order by someCol desc";
$group = "select order.*
from ($order) as order
group by order.otherCol";
結果子選擇字符串爲$組。
第五個參數$選擇findManyToManyRowset應該是Zend_Db_Table_Select對象,但我被困在這個POIN,becouse我不能做真正的分與Zend_Db_Table_Select對象和becouse在findManyToManyRowset選擇(..) 有串
if ($select === null) {
$select = $matchTable->select();
} else {
$select->setTable($matchTable);
}
$select->from(array('i' => $interName), array(), $interSchema)
->joinInner(array('m' `enter code here`=> $matchName), $joinCond, Zend_Db_Select::SQL_WILDCARD, $matchSchema)
->setIntegrityCheck(false);
他們打破了我所做的$ select($ group)