1. 程式人生 > >【理解】column must appear in the GROUP BY clause or be used in an aggregate function

【理解】column must appear in the GROUP BY clause or be used in an aggregate function

pin group func 函數 ear -- database nbsp like

column "ms.xxx_time" must appear in the GROUP BY clause or be used in an aggregate function

------------------------------------------------------------------------------------------

有min(), max(), sum(), avg()這些函數可以和group by 語句連在一起用。

The SQL GROUP BY statement is used along with the SQL aggregate functions like SUM to provide means of grouping the result dataset by certain database table column(s).

【理解】column must appear in the GROUP BY clause or be used in an aggregate function