作者:林志群晴梦 | 来源:互联网 | 2018-07-15 02:52
oracle下中文日期和英文日期的转换!
select * from V$NLS_PARAMETERS;
SQL> alter session set NLS_DATE_LANGUAGE = 'SIMPLIFIED CHINESE';
Session altered
SQL> Select to_char(sysdate,'yyyy-Mon-day') from dual;
TO_CHAR(SYSDATE,'YYYY-MON-DAY'
------------------------------
2009-5月 -星期三
SQL> alter session set NLS_DATE_LANGUAGE='AMERICAN';
Session altered
SQL> Select to_char(sysdate,'yyyy-Mon-day') from dual;
TO_CHAR(SYSDATE,'YYYY-MON-DAY'
------------------------------
2009-May-wednesday
SQL>