灵活运用Zend框架

$aAwardMem = $this->dao_raward->getAwardAndMem($where,'award_level asc',false,false,false,'award_level,count(award_level) as count',false,array('award_level'));

award_level,count(award_level) as count

这里就灵活的运用了变量$from,将count放入其中,获取了数量。

很多sql是封装的,我们要能够理解它的精髓。其实它只是将变量各种组装之后,成为标准的sql语句罢了。

要能够灵活的运用。

原文地址:https://www.cnblogs.com/jiqing9006/p/3796447.html