码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2018-11-06 18:15:50      阅读:2291      评论:0      收藏:0      [点我收藏+]

标签:time   max   res   avg   sum   ase   cert   The   sql   

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

标签:time   max   res   avg   sum   ase   cert   The   sql   

原文地址:https://www.cnblogs.com/oxspirt/p/9916827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!