繁体   English   中英

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

[英]extract full month name from date in redshift

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

2022-01-01 ->> January

to_char() function 这样做:

to_char(, '月')

例如

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

产生“一月”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM