一、时间相关的
toMinute(timestamp) /*截取分钟*/
toUInt32(timestamp) /*返回unix时间戳*/
formatDateTime(timestamp, '%Y/%m/%d %H:%M:00') /*返回指定格式*/
toStartOfInterval(timestamp, INTERVAL 2 minute) /*指定时间间隔*/
toStartOfDay(timestamp) /*当天开始时间*/
二、以数组的形式返回多值
一、时间相关的
toMinute(timestamp) /*截取分钟*/
toUInt32(timestamp) /*返回unix时间戳*/
formatDateTime(timestamp, '%Y/%m/%d %H:%M:00') /*返回指定格式*/
toStartOfInterval(timestamp, INTERVAL 2 minute) /*指定时间间隔*/
toStartOfDay(timestamp) /*当天开始时间*/
二、以数组的形式返回多值