美文网首页
数据库创建遇到的问题:1055 - Expression #1

数据库创建遇到的问题:1055 - Expression #1

作者: 楚糖的糖 | 来源:发表于2019-02-15 15:58 被阅读0次

1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode
我在数据库进行迁移创建的时候遇到了这个问题,我数据表是用navicate来创建的,只需要再在编辑查询里面加上下面这句话,再运行就好了

解决办法:
'''
select version(),
@@sql_mode;SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
'''

相关文章

网友评论

      本文标题:数据库创建遇到的问题:1055 - Expression #1

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