ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
粗略来讲:报错原因可能是有group by 语句的select的属性中含有除无法查询的属性。也就是说,group by 属性1 语句使用后,select语句后接的属性只能是属性1或者是函数属性例如count(属性2)、max,min等。至于说解决办法就是去掉不和规矩的查询属性,或者使用其他SQL逻辑语句。...