MySQL解决报错:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
报错信息及语句如下我这个语句是因为我偷懒是不规范的groupby用法,当然偷懒是不对的,所以我最后使用了不偷懒的写法。selectid,count(type),typefrommenuwherebig_type='豆科'groupbytype;Expression#1ofSELECTlistisnotinGROUPBYclauseandcontainsnonaggregatedcolumn'ren