我有sql命令,例如
$kos = DB::select('SELECT team,round,SUM(points) AS total from points WHERE round="first" GROUP by team ORDER BY total desc, run_rate desc limit 4');
当我dd($kos)
会给我这个输出see here但是当我运行这个
$kos = DB::select('SELECT team,round,SUM(points) AS total from points WHERE round="first" GROUP by team ORDER BY total desc, run_rate desc limit 4');
foreach($kos as $ko){
dd($ko->team);
}
它将给我这个输出see here 谁能告诉我为什么?
答案 0 :(得分:1)