在我的表中,eventtime列看起来像是
char pop(stack *s){
if(s == NULL){
isEmpty(s);
return -1;
}
char x=s->value;
s=(s->next);
return x;
}
我想按事件时间分组,仅限日期。
喜欢
2017-03-25T03:18:00001Z
2017-03-25T05:21:00013Z
答案 0 :(得分:1)
在GROUP BY
和SELECT
子句中使用它。
cast (from_iso8601_timestamp(eventtime) as date)
答案 1 :(得分:0)
GROUP BY CAST(myDateTime AS DATE)