新闻中心

记录团队成长点滴以及对技术、理念的探索,同时我们乐于分享!

laravel groupBy 报错 1055 Expression #1 of SELECT list is not in GROUP BY

2020-08-21 20:59:16 分类:技术学堂

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'beiligong_logistics.clock_record.pkid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by


修改config/databases.php 中的 strict 修改未 false;


关闭laravel 严格模式