使用的ubuntu,本地配置的apache环境,laravel 5.3使用groupBy报错
`$list = \DB::table('game_answer_record')->groupBy('uid')->select(\DB::raw('id, quality, uid'))->get();`
报的错误如下 :
`QueryException in Connection.php line 770:
SQLSTATE[42000]: Syntax error or access violation: 1055 'ezhenduan2.app_game_answer_record.id' isn't in GROUP BY (SQL: select id, quality, uid from app_game_answer_record
group by uid
)`
sql语句在mysql中执行正常