ITPub博客

首页 > Linux操作系统 > Linux操作系统 > session与nls_date_format

session与nls_date_format

原创 Linux操作系统 作者:onlinedog 时间:2009-12-03 13:07:55 0 删除 编辑
SQL> conn hbjb_kf_ts/test@s9
已连接。
 
SQL> select aic162 from ic10 where aic162 is not null and rownum <2;
AIC162
--------------
01-1月 -08
已选择1行。
 
SQL> alter session set nls_date_format='yyyy/mm/dd';
会话已更改。
 
SQL> select aic162 from ic10 where aic162 is not null and rownum <2;
AIC162
----------
2008/01/01
已选择1行。
 
SQL> discon
从 Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options 断开
 
SQL> conn hbjb_kf_ts/test@s9
已连接。
 
SQL> select aic162 from ic10 where aic162 is not null and rownum <2;
AIC162
--------------
01-1月 -08
已选择1行。
        
可见:alter session语句只在本session范围内起作用,同时也使用了一下nls_date_format。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7204674/viewspace-621534/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 物化视图二
请登录后发表评论 登录
全部评论

注册时间:2008-09-16

  • 博文量
    106
  • 访问量
    228383