MySQL5.6.44dependent on columns in GROUP BY clause

问题

        SELECT list is not in GROUP BY clause and contains nonaggregated column \\'testdb.testtables.plat_id\\' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by


查看数据库是否设置了only_full_group_by属性,该属性会导致上述问题,需要去掉
select @@sql_mode;


修改my.cnf配置文件,添加如下
[mysqld]
sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION


上一篇:STM32常用数据类型总结!!!!!!!!!!


下一篇:ES6新特性