将含有中文字符的日期格式转化(如:19-8月 -17)

SELECT TO_CHAR(TO_DATE('17-12月-17', 'dd-mon-yyyy', 'nls_date_language=''SIMPLIFIED CHINESE'''),'yyyy-mm-dd') 
        ,TO_CHAR(TO_DATE(CREATE_TIME, 'dd-mm"月"-yy'),'yyyy-mm-dd') 
 FROM DUAL;


SELECT TO_CHAR(TO_DATE('17-12月-80','dd-mon-yyyy','nls_date_language=''SIMPLIFIED CHINESE'''),'dd-mon-yyyy','nls_date_language=American') FROM DUAL;

你可能感兴趣的:(PL/SQL)