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>
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>
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
本文地址:/shujuku/oracle/100339.html