oracle 时间和SCN相互转化
来源:互联网 发布:远程连接linux服务器 编辑:程序博客网 时间:2024/05/02 00:50
主要使用的是函数 timestamp_to_scn() 和 scn_to_timestamp();
1. 时间转化为SCN
SQL> select timestamp_to_scn(sysdate) from dual; SQL> select sysdate from dual; SYSDATE --------- 11-MAR-15 SQL> select timestamp_to_scn(sysdate) from dual; TIMESTAMP_TO_SCN(SYSDATE) ------------------------- 1041879
2. SCN转换为时间
SQL> select current_scn from v$database; CURRENT_SCN ----------- 1041902 SQL> select scn_to_timestamp(current_scn) from v$database; SCN_TO_TIMESTAMP(CURRENT_SCN) --------------------------------------------------------------------------- 11-MAR-15 02.14.34.000000000 AM
0 0
- oracle 时间和SCN相互转化
- 时间戳和时间的相互转化
- 时间戳和时间的相互转化
- Oracle SCN时间机制
- MySQL时间戳和日期相互转化
- MySQL时间戳和日期相互转化
- MySQL时间戳和日期相互转化
- 查询当前scn+scn与时间之间的转化sql
- SCN 时间戳的相互转换
- oracle scn和headroom
- IOS 时间戳和当前时间的相互转化
- iOS开发:时间和时间戳之间的相互转化
- 将时间格式和时间戳相互组转化
- Oracle时间格式与整型格式相互转化
- iOS中日期和字符串的相互转化(时间戳)
- HTML时间戳和日期之间的相互转化
- JS DATE和时间戳之间相互转化
- java时间戳和Date的相互转化
- http请求头和响应头的含义
- fun_sys_get_part_min
- vector iterator
- Android初学习 - context 和 getApplicationContext()
- QtWebkit里RenderLayer树的绘制详细流程分析
- oracle 时间和SCN相互转化
- Third Edition Resources
- Using CAS without the Login Screen(不使用cas登陆页面)
- OC学习小结之内存管理
- 位运算应用口诀和实例
- 常用的 预定义宏(编译器)
- C. Glass Carving (CF Round #296 (Div. 2) STL--set的运用 && 并查集方法)
- LINUX命令
- MVN配置:如何从中央仓库获取jar包到本地仓库