1

laravel左连接连贯求助

mo521 created at5 years ago view count: 185

$game=DB::select("select game_game.id,name,img,tags,syn,frame,group_concat(game_type.gm_name) as pid from game_game left join game_type on find_in_set(game_type.id,game_game.pid) group by game_game.id");

这段代码想写成连贯方法

report
回复
0
neo #
when in doubt, use brute force

就这样写就行了 没有必要写为orm风格

5 years ago 回复