如何在使用时限制查询到特定列Zend_Db_Table_Abstract?使用Zend_Db_Table_Abstract限制查询返回列
(getDbTable()下面返回Zend_Db_Table_Abstract对象)
$resultSet = $this->getDbTable()->fetchAll(
$this->getDbTable()->select()
->where('forgienKey = \'' . $forgienKey . '\'')
->order("'id' ASC")
);
我只需要返回的ID列,但返回的整个行。谢谢你的帮助!
这工作谢谢! – ktamlyn 2012-03-25 19:03:03