前面是日期格式:yyyy-m-d转换后结果是字符串,yyyy年mm月份
oracle 的话,
select to_char(date'2021-10-14' ,'yyyy')||'年'||to_char(date'2021-10-14' ,'mm')||'月份' from dual