当前位置:   article > 正文

SQL_front打开mysql错误提示Expression #1 of SELECT list is not in GROUP BY

SQL_front打开mysql错误提示Expression #1 of SELECT list is not in GROUP BY

解决办法:
(1) 找到mysql的安装目录,然后在当前目录进入cmd命令,输入mysql -u账号 -p密码 或者 ,进入mysql,

D:\phpstudy_pro\Extensions\MySQL5.7.26\bin(用\phpstudy_pro安装的默认路径)

(2) 执行下面命令去掉 sql_mode 的 ONLY_FULL_GROUP_BY:

  1. mysql> set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
  2. mysql> set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/899568
推荐阅读
相关标签
  

闽ICP备14008679号