首页 > 其他 > 详细

group by 列需要别名问题

时间:2016-06-22 18:47:51      阅读:271      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!