edrp.cn的Blog

学习,需要交流,欢迎大家和我共同来学习C#,ASP.NET,MS SQL Server开发Web项目,欢迎大家和我交流

博客园 首页 新随笔 联系 订阅 管理
错误信息:
[Err] 1140 - In aggregated query without GROUP BY, expression #6 of SELECT list contains nonaggregated column 'bladex_account.a.dept_id'; this is incompatible with sql_mode=only_full_group_by

解决方法:
1、查看设置:select version(), @@sql_mode;
2、修改设置:
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
 
posted on 2020-05-13 11:21  edrp.cn  阅读(253)  评论(0编辑  收藏  举报