oracle 闪回操作--区别于快照

时间:2020-11-19 12:00:09   收藏:0   阅读:14

update CMS.CI_MONITOR t set t.eyes_type = ‘fl1‘;
commit; --挖坑
------------------
create table tmp_ci_monitor as
select * from cms.ci_monitor as of timestamp sysdate-15/60/24;

select a.eyes_type,COUNT(1) from tmp_ci_monitor a
GROUP BY a.eyes_type;-- where a.eyes_type = ‘‘
select a.eyes_type,COUNT(1) from cms.ci_monitor a
GROUP BY a.eyes_type;-- where a.eyes_type = ‘‘

update cms.ci_monitor t set t.eyes_type = (select t1.eyes_type from tmp_ci_monitor t1 where t.monitor_id=t1.monitor_id);
commit;

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!