这是数据表 比如我要根据月来分组 查询每个月点击次数的总数
$list = Db::name('XXX')->where($where)
->field("id, user_id,SUM(`price`) as price,SUM(`number`) as n
这是数据表 比如我要根据月来分组 查询每个月点击次数的总数
$list = Db::name('XXX')->where($where)
->field("id, user_id,SUM(`price`) as price,SUM(`number`) as n