09-MAY-07 这个字符串怎么转换成日期类型呢?
select to_date( '09-MAY-07 ', 'YYYY-MM-DD ') from dual
报错说 “ORA-01858:在要求输入数字处找到非数字字符”;
------解决方案--------------------SELECT TO_DATE( '09-MAY-07 ', 'DD-MONTH-YY ', 'NLS_DATE_LANGUAGE = American ') FROM DUAL;
------解决方案--------------------SELECT to_char(TO_DATE( '09-MAY-07 ', 'DD-MONTH-YY ', 'NLS_DATE_LANGUAGE = American '), 'YYYY-MM-DD ') FROM DUAL