Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1037282
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: LINUX

2014-01-30 16:50:45

闪回版本查询
SQL> select salary from hr.employees where employee_id = 200;


    SALARY
----------
      4400
SQL> update hr.employees set salary = 11111 where employee_id = 200;


1 row updated.


SQL> commit;


Commit complete.


SQL> update hr.employees set salary = 22222 where employee_id = 200;


1 row updated.


SQL> commit;


Commit complete.


SQL> update hr.employees set salary = 33333 where employee_id = 200;


1 row updated.


SQL> commit;


Commit complete.


SQL> update hr.employees set salary = 44444 where employee_id = 200;


1 row updated.


SQL> commit;


Commit complete.


SQL> select employee_id,salary
from hr.employees
versions between timestamp (systimestamp - interval '10' minute)
and maxvalue
where employee_id = 200;


EMPLOYEE_ID SALARY
----------- ----------
200 44444
200 33333
200 22222
200 11111
200  4400

说明4个事务对salary进行了修改。





阅读(626) | 评论(0) | 转发(0) |
0

上一篇:oracle闪回学习二

下一篇:oracle闪回学习四

给主人留下些什么吧!~~