//分组,每组一条 $obj_data = DB::table('pic')->where('status' ,1)->where('is_deleted' ,0)->groupBy('group')->get(); //分组,每组多条 $obj_data = DB::table('pic')->where('status' ,1)->where('is_deleted' ,0)->get()->groupBy('group');
php,查询分组,每组只有一条数据
最新推荐文章于 2022-05-05 13:50:16 发布