问题mysql
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_bysql
查看数据库是否设置了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_SUBSTITUTIONide