最近在mysql 8.0.31版本中发现一个问题,在执行一条插入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
试试执行一下这个命令,就不会报错了
set sql_mode=‘NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES’