Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在我处于一种状态,我只是显示月份名称和一些按月份编号分组的数据。有一个小问题。我需要从 Oracle 获取月份名称而不是月份编号。
try this:
SELECT TO_CHAR(TO_DATE(11, 'MM'), 'MONTH') FROM DUAL;
result:
NOVEMBER
This can be resolve your problem
SELECT TO_CHAR(TO_DATE(1, 'MM'), 'MON') FROM DUAL;
这个怎么样:
SELECT TO_CHAR(SYSDATE, 'Month') FROM DUAL;