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',''));
'''
网友评论