错误信息:
[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',''));