📜  雪花 datetrunc 月份 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:06.609000             🧑  作者: Mango

代码示例1
select to_date('2015-05-08T23:39:20.123-07:00') as "DATE1",
       date_trunc('YEAR', "DATE1") as "TRUNCATED TO YEAR",
       date_trunc('MONTH', "DATE1") as "TRUNCATED TO MONTH",
       date_trunc('DAY', "DATE1") as "TRUNCATED TO DAY";