从红移中的日期中提取完整的月份名称



从红移中的日期中提取完整月份名称的快速方法。

2022-01-01 ->> January

to_char((函数执行以下操作:

to_char(,'月'(

例如

select to_char('2022-01-01'::date, 'Month');

制作"一月"。

使用此公式为月份名称创建计算字段。

[ifelse(
month=1, "January",
month=2, "February",
month=3, "March",
month=4, "April",
month=5, "May",
month=6, "June", 
month=7, "July",
month=8, "August",
month=9, "September", 
month=10, "October", 
month=11, "November",
month=12, "December", null
) ]

最新更新