問題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