摘要:
1、当我们要统计数据表数量时,如果遇到多表查询,会出现一个主表对应多个子表的维度,我们会用到group by,但是不要再用统计函数去操作数据,因为统计还是会统计原数据 案例 SELECT sum(`order`.goods_amount) AS total_goods_amount, sum(`or 阅读全文
摘要:
1、array_slice 作用:数组分页函数 案例:$output = array_slice ( $input , - 2 , 1 ); 2、array_column 作用:数组根据值取出一段数据 案例:array_column ( $records , 'first_name' ); 3、拼接 阅读全文