sql語句(group by原理)

所有select的字段,除聚合函數中的字段,都必須在group by中出現 舉個例子,select A,B,C,count(D),sum(E)from table group by A,B,C。 除聚合函數count(D),sum(E)外,字段A,B,C必須在group by中出現。   爲什麼不能夠select * from Table group by id,爲什麼一定不能是*,而是某一個列或
相關文章
相關標籤/搜索