用到GROUP BY 语句查询时出现
which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by错误
解决方法 :执行SET GLOBAL sql_mode = ''; 把sql_mode 改成非only_full_group_by模式。
然后,重新连接数据库,再执行含有group by语句的查询语句;
用到GROUP BY 语句查询时出现
which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by错误
解决方法 :执行SET GLOBAL sql_mode = ''; 把sql_mode 改成非only_full_group_by模式。
然后,重新连接数据库,再执行含有group by语句的查询语句;