赞
踩
今天在新建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
网上查到是因为sql_mode设置导致的这个错误
-- 查看sql_mode设置
show variables like "sql_mode";
-- 设置sql_mode
set sql_mode='';
set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES';
运行后,问题就成功解决了,可以正常执行SQL语句
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。