navicat中运行 sql语句报错:
[Err] 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
最先使用Mysql5.0以下的版本没有问题,可是8.0就出问题了。
解决办法
在Navicat工具里面执行下面语句:
show variables like “sql_model”;
set sql_mode=’’;
set sql_mode=‘no_engine_substitution,strict_trans_tables’;
然后再去操作数据库,就没任何问题了:
错误完美解决,开开心心敲代码喽