人生不设限

导航

使用函数的列 group by 分组需要别名

问题描述

使用如下截图的SQL统计数据,报1105错误,提示all columns in group by clause should be in the selected column.

image

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

 image

posted on 2016-06-22 17:33  风的_理想  阅读(1250)  评论(0编辑  收藏  举报