TO_DATE function in ORACLE

前端 未结 4 1002
伪装坚强ぢ
伪装坚强ぢ 2021-01-28 06:07

I was trying the TO_DATE function. Specifically, I noted that the following queries

1. SELECT TO_CHAR(TO_DATE(\'01-01-2015\',\'DD-MM-YYYY\'),\'DD-MO         


        
4条回答
  •  孤独总比滥情好
    2021-01-28 06:55

    The output format of TO_CHAR is not correct, try:

    SELECT TO_CHAR(TO_DATE('01-01-2015','DD-MM-YYYY'),'DD-MM-YYYY') FROM DUAL;
    

提交回复
热议问题