我有一個DbTableZend框架:由兩個字段選擇不同的行
field 1 field 2 1 2 2 3 2 3 2 2 1 1 2 2
我想
field 1 field 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 Framework的這樣硬?!