下面的代码不起作用。
$subQuery = DB::table('table1')->groupBy('col'); $data = DB::table($subQuery, 'sub')->get();
你能帮我解决这个问题吗?
php laravel
laravel ×1
php ×1