ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 显示日期格式

显示日期格式

原创 Linux操作系统 作者:victor1010 时间:2009-03-25 09:06:29 0 删除 编辑

[HCGL@oracle:/home/hmisdata1/hmisb/bdump]export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.8.0 - Production on Wed Mar 25 09:03:00 2009

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

sys@HMISB> select sysdate from dual;

SYSDATE
-------------------
2009-03-25 09:03:08

sys@HMISB> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]export NLS_DATE_FORMAT='yyyy/mm/dd hh24:mi:ss'
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.8.0 - Production on Wed Mar 25 09:03:43 2009

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

sys@HMISB> select sysdate from dual;

SYSDATE
-------------------
2009/03/25 09:03:48

sys@HMISB> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]export NLS_DATE_FORMAT='yyyy/mm/dd'
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.8.0 - Production on Wed Mar 25 09:04:11 2009

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

sys@HMISB> select sysdate from dual;

SYSDATE
----------
2009/03/25

sys@HMISB> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]export NLS_DATE_FORMAT='yyyy-mm-dd'
[HCGL@oracle:/home/hmisdata1/hmisb/bdump]sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.8.0 - Production on Wed Mar 25 09:05:08 2009

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

sys@HMISB> select sysdate from dual;

SYSDATE
----------
2009-03-25

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

请登录后发表评论 登录
全部评论

注册时间:2008-04-29

  • 博文量
    296
  • 访问量
    565619