mysql 8.0高版本 sql_mode=only_full_group_by 解决方法_unbantumysql8.0 with sql_model=only_full_group_by-CSDN博客

网站介绍:文章浏览阅读3.2k次,点赞2次,收藏8次。运行 sql 时报错Expression #2 of SELECT list is not in GROUP BY clause........ which is not functionally dependent on columns in GROUP BY clause;this is incompatible with sql_mode=only_full_group_by1、报错原因这个错误一般发生在mysql 5.7以及 5.7以上的版本中,其原因是mysql的默认配置中,sql_m_unbantumysql8.0 with sql_model=only_full_group_by