Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > How to change SYSDATE's value to a static date without changing system date
【标  题】:How to change SYSDATE's value to a static date without changing system date
【关键字】:How,to,change,SYSDATE,value,to,static,date,without,changing,system,date
【来  源】:http://blog.csdn.net/jiawancai/archive/2007/01/12/1481112.aspx

How to change SYSDATE's value to a static date without changing system date

Your Ad Here First change the NLS_DATE_FORMAT to a recognizable full format:

alter session set nls_date_format = 'dd.mon.yyyy hh24:mi:ss';

Then change the system variable fixed_date's value:

alter system set fixed_date='2004-03-02 22:23:24';

Now select SYSDATE from dual or any other table. You will only get the fixed date always irrespective of the system's physical date.

To reset the fixed_date parameter do the following:

alter system set fixed_date=NONE; 
 
怎样让SQL只显示用户表:【上一篇】
size tablespace autoextend and temp managed:【下一篇】
【相关文章】
  • 在Oracle 10G上用JDBC进行批量更新(batch update)时的限制
  • Creating a Data dictionary file to use with LogMi
  • Trace event to check explain plan + bind variable peeking + hints + CBO environment
  • tablespace occuped with autoextent managment and tempfile
  • Sql tricks: multiple rows in one output value
  • showModalDialog和showModelessDialog
  • 页面处理指令中的AutoEventWireup
  • 解决了把Web DataGrid 模板列中"按钮列"中的按钮样式改成PushButton后不激发事件的问题
  • 删除_desktop.ini
  • Java的static关键字的用法
  • 【随机文章】
  • 改变Win 2003登录方式
  • EasecolorV1.01pj心得
  • 超链接的制作_基础部分摘自网易社区_AX
  • ORACLE 9I FOR AIX 5L 的安装文档『转贴』
  • 实现基于IDEA算法的加密工具(5)
  • 伪操作 - 汇编(ZT)
  • FreeBSD连载(63):集成Unix和Windows的方式
  • 一些在php下实现ajax的framework
  • 完全三叉树解决长方形容器中光源反射点遍历的问题
  • vc读写Excel文件的方法
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.