MySQL: 1055

 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mysql-test-data.o1.seller_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

出现这个问题的时候,在网络搜集各种设置方式,仅仅这一个是有用的

set sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
原文地址:https://www.cnblogs.com/Tdazheng/p/14977579.html