美文网首页
Expression of SELECT list is not

Expression of SELECT list is not

作者: Mylovesunshine | 来源:发表于2019-04-23 09:02 被阅读0次

    解决mysql出现的问题#1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i

    最近在学flask, 在访问主页时,一直出现1055错误,在网上找的解决方法是删除ONLY_FULL_GROUP_BY,当时是删除了,但是退出在进行select @@sql_mode时,仍出现ONLY_FULL_GROUP_BY

    以下是我的解决方案:

    在数据库控制台输入命令:SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

    完美解决我的问题了

    相关文章

      网友评论

          本文标题:Expression of SELECT list is not

          本文链接:https://www.haomeiwen.com/subject/hrdmgqtx.html