首页 > 技术文章 > 使用函数的列 group by 分组需要别名

janehoo 2016-06-22 17:33 原文

问题描述

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

image

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

 image

推荐阅读