Hi All,

I want to select only a particular column from a table. Please suggest some solution.


$sql = new Sql($this->adapter);
        $select = $sql    ->select();
$select->from(array('bid_buy'),'maxamount'=> new Expression('max(bid_amount)'))

                        ->where(array('id'    =>    $id))
                        ->order('id DESC');

I want to use max function of sql and want to fetch maximum value of bid_amount from bid_buy table.



Thanks
sandeep

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to