今天用navicat链接5.7mysql,insert数据成功插入,但是报错:
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=only_full_group_by
网上找了下处理的方法,修改配置文件:在配置文件(centos7在/etc/my.cnf中)里加一句就可以了:sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column
最新推荐文章于 2024-09-11 13:12:35 发布