查询数据时报Syntax error or access violation: 1055 Expression #1 of SELECT list is not 错误解决

group 查询的时候遇到这个错误
网上查了资料,得出结果是 mysql版本问题,修改数据库配置文件即可
找到数据库配置文件windows中my.ini文件或linux中的my.cnf文件,在mysqld中增加

sql_mode=

在这里插入图片描述

只加一个这个就可以了。
然后重启一下mysql,搞定。

猜你喜欢

转载自blog.csdn.net/chendongpu/article/details/114886860