码迷,mamicode.com
首页 > 其他好文 > 详细

group by 列需要别名问题

时间:2016-06-22 18:49:47      阅读:1154      评论:0      收藏:0      [点我收藏+]

标签:

今天遇到一个SQL小问题。使用如下截图的SQL统计数据,报1105错误,提示all columns in group by clause should be in the selected column.

 

技术分享

 

 

给格式化 的时间列加个别名,问题解决。

 

技术分享

group by 列需要别名问题

标签:

原文地址:http://www.cnblogs.com/janehoo/p/5607964.html

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