Home > Database > Mysql Tutorial > Oracle 数据表执行dml提交后如何恢复

Oracle 数据表执行dml提交后如何恢复

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:00:23
Original
1106 people have browsed it

在数据库中存在表test,如果执行了update,delete,insert语句之后,表中的数据会有所改变,如果想要恢复,需要先查询出之前的状态

在数据库中存在表test,如果执行了update,delete,insert语句之后,表中的数据会有所改变,如果想要恢复,,

需要先查询出之前的状态,可以用如下语句

select * from test as of timestamp to_timestamp('2011-04-08 10:05:00','YYYY-MM-DD hh24:mi:ss');

注意这里的时间只要在执行dml语句时间之前即可

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template