ClickHouse函数整理(详细)

一、日期类函数 1.1 时间或日期截取函数(to)—— 返回非日期 函数 用途 举例 结果 toYear() 取日期或时间日期的年份 toYear(toDateTime(‘2018-12-11 11:12:13’)) toYear(toDate(‘2018-12-11’)) 返回 2018 返回 2018 toMonth() 取日期或时间日期的月份 toMonth(toDateTime(‘2018
相关文章
相关标签/搜索