Oracle 的表备份的方法

1.直接备份(防止误操作后数据库表不能恢复)

create table new_table as select * from old_table;

2.创建表头,然后插入列(繁琐的做法)

create table new_table (col1 VARCHAR2(20), col2 NUMBER, col3 VARCHAR2(30), col4 VARCHAR2(50))

然后

insert into new_table select * from old_table;
commit;

3.表的删除

drop table table_name

posted @ 2016-11-10 16:24  日月心诚  阅读(1189)  评论(0)    收藏  举报