0
我想達到以下MySQL查詢Zend框架1.11:選擇與MySQL查詢字符串/數字Zend框架
SELECT [other_columns], 1 AS dontShow FROM deal_merchants;
我很感興趣,選擇1號,給它的dontShow
別名。然而,當我運行下面的代碼:
$select = $this->select(Zend_Db_Table::SELECT_WITHOUT_FROM_PART);
$select->setIntegrityCheck(false)
->from('deal_merchants',array('MIN(BidPrice) AS price','USERS_ID','MIN(BidQuotaFrom) AS MinFrom','MAX(BidQuotaTo) AS MaxTo','users.ImageURL','1 AS dontShow'));
我得到以下異常:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'deal_merchants.1' in 'field list'