Oracle快速备份表数据
Oracle数据库中备份表数据。
例子:
1 create table table_name_bak as select * from table_name
1 create table table_name_bak as select * from table_name 2 where table_name.date between TO_DATE('2018-09-25','yyyy-MM-dd') and TO_DATE('2018-09-26','yyyy-MM-dd') and table_name = '1'
备份完成之后。可以删除原有数据或者表
1 delete form table_name where table_name.date between TO_DATE('2018-09-25','yyyy-MM-dd') and TO_DATE('2018-09-26','yyyy-MM-dd') and table_name = '1'