码上敲享录 > mysql实战经验分享 > 解决Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

解决Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

上一章章节目录下一章 2019-09-30已有1957人阅读 评论(0)

解决Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column


解决方法:

报错信息如下:

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'thinkcc_nps.a.create_time' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by


修改mysql安装目录下的配置文件my.cnf,把sql_mode属性的ONLY_FULL_GROUP_BY去掉,重启mysql即可


0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交