当前位置:主页 > 数据库 > Oracle >

oracle 时间格式的调整

时间:2021-01-07 11:36:03 | 栏目: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>

您可能感兴趣的文章:

相关文章