有一些字符串是类似“Dec 20 2011 9:58AM”,我怎么转化之后能插入到oracle中的date类型的字段中呢?谢谢了
------解决方案--------------------
SELECT TO_DATE ('Dec 20 2011 9:58AM',
'Mon dd yyyy hh:miAM',
'NLS_DATE_LANGUAGE = American'
)
FROM dual
------解决方案--------------------
SQL> alter session set nls_date_language='AMERICAN';
Session altered
SQL> select to_date('2003,May-22','YYYY,Mon-dd') from dual;
TO_DATE('2003,MAY-22','YYYY,MO
------------------------------
2003-5-22