$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语句罢了。

要能够灵活的运用。

相关文章:

  • 2021-05-05
  • 2021-07-20
  • 2021-05-18
  • 2021-11-12
  • 2022-12-23
  • 2021-08-02
  • 2022-01-07
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2021-07-02
  • 2021-07-28
  • 2022-01-16
  • 2021-07-28
相关资源
相似解决方案