欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

oracle 时间格式的调整

程序员文章站 2023-12-04 19:11:10
select * from v$nls_parameters; sql> alter session set nls_date_language = 'simplif...
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>