oracle删除表了如何恢复数据以及如何把一张表的数据复制到另一张表

时间:2021-07-13 00:41:52

CREATE TABLE QUICK_TABLE AS SELECT * FROM students AS OF TIMESTAMP SYSDATE-1/24 (1个小时)



CREATE TABLE QUICK_TABLE5 AS SELECT * FROM students  AS OF TIMESTAMP  (SYSTIMESTAMP - INTERVAL '60' MINUTE)(按分钟算的)




studnets 为删除的表



drop table students


rename quick_table5 to students;



复制






如何复制一张表
步骤一:先执行viewSql
Insert into A select  * FROM B;
步骤二:
往A表里面插入B表的数据
alter table EDU_BD_MAJOR add(en_name_ varchar2(200)); --点击EDU_BD_MAJOR 出不来东西