如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
group_concat(v) v放到一起逗号隔开,
<code class="">$sku = Db::table('product_sku')->select("id","sku_name as k",DB::raw('group_concat(sku_value) as v'))->where(['gid'=>$id,'status'=>1])->groupBy('sku_name')->get();
</code>