如何在zend中获取每行2列的总和。我的代码是-
$fieldArray = array('Jan','Feb', 'total'=>'Jan+Feb');
$db = Zend_Db_Table::getDefaultAdapter();
$select = $db->select()
->from($this->_name,$fieldArray);
die($select);
但它会打印查询-
SELECT Customer
。Jan
, Customer
. Feb
, Customer
. Jan+Feb
AS total
FROM Customer
,它给出了错误。
如何写语句得到结果?