摘要: $arr = [ 1 , 2 , -4 , 4 , 10 , -23 , 4 , -5 , 1]; $max_sum = 0; $sum=0; $new = []; $i = 1; echo ''; foreach( $arr as $key => $value ){ if($sum<0){ unset($new[$i]); ... 阅读全文
posted @ 2018-06-14 17:51 不一样的开始 阅读(162) 评论(0) 推荐(0) 编辑
摘要: HAVING方法也是连贯操作之一,用于配合group方法完成从分组的结果中筛选(通常是聚合条件)数据 SELECT username,max(score) FROM think_score GROUP BY user_id HAVING count(test_time)>3 阅读全文
posted @ 2018-06-14 15:47 不一样的开始 阅读(276) 评论(0) 推荐(0) 编辑