方法一:
SELECT TO_CHAR(SYSDATE, ‘YYYY"年"MM"月"DD"日"‘) A FROM dual
方法二:
SELECT TO_CHAR(SYSDATE, ‘YYYY‘) || ‘年‘ || TO_CHAR(SYSDATE, ‘mm‘) || ‘月‘ || TO_CHAR(SYSDATE, ‘dd‘) || ‘日‘ A FROM dual
时间: 2024-11-10 16:51:24
方法一:
SELECT TO_CHAR(SYSDATE, ‘YYYY"年"MM"月"DD"日"‘) A FROM dual
方法二:
SELECT TO_CHAR(SYSDATE, ‘YYYY‘) || ‘年‘ || TO_CHAR(SYSDATE, ‘mm‘) || ‘月‘ || TO_CHAR(SYSDATE, ‘dd‘) || ‘日‘ A FROM dual