mysql中如何求某列的总值?
mysql:select sum(value1) as total1,sum(value2) as total2 from table;thinkphp:$Useracounttotal = M('Commission')->where(array('userid'=>$userInfo['id'],'status'=>1))->field('sum(commi...
原创
2018-07-19 11:23:31 ·
3847 阅读 ·
0 评论