本文主要是介绍MySQL报错:this is incompatible with sql_mode=only_full_group_by,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
mysql 5.7报错
which is not functionally dependent on columns in GROUP BY clause;
this is incompatible with sql_mode=only_full_group_by
解决办法
修改配置文件 my.cnf
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
参考文章
- which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod
这篇关于MySQL报错:this is incompatible with sql_mode=only_full_group_by的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!