这里我试图提取日期,年份,季度和月份名称,但它不是工作月份.i提取月份,但它仅作为数字给出,但我需要作为“APR”
to_char(TRAN_DATE,'YYYY') = '2013'
to_char(TRAN_DATE,'Q') = '2'
to_char(TRAN_DATE, 'MON') = '4'
答案 0 :(得分:0)
SQL> select to_char(sysdate, 'MON') as abbreviated_name_of_month from dual;
ABBREVIATED_NAME_OF_MONTH
-------------------------
FEB
查看Datetime Format Elements上的Oracle文档。