Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的表事件时间列看起来像,
2017-03-25T03:18:00001Z 2017-03-25T05:21:00013Z
我只想按事件时间和日期分组。
像
2017-03-18, 2017-03-21
在 theGROUP BY和SELECT从句中使用它。
GROUP BY
SELECT
cast (from_iso8601_timestamp(eventtime) as date)
GROUP BY CAST(myDateTime AS DATE)