我有一个 dbtable
字段 1 字段 2 1 2 2 3 2 3 2 2 1 1 2 2
我想得到
字段 1 字段 2 1 2 2 3 2 2 1 1
试过了
$select = $this->_dbTable->select()->from($this->_dbTable,array("DISTINCT(field_1) as field_1","DISTINCT(field_2) as field_2")); $select = $this->_dbTable->select()->from($this->_dbTable,array("DISTINCT(field_1, field_2) as field_1, field_2"));
PS:为什么这个 Zend 框架这么难?!