备份Oracle数据库表数据

先备份后删除

 

--备份2019年数据
create table table_name_2019 as select * from table_name a
where a.create_time between to_date('2019-01-01','yyyy-mm-dd') and to_date('2019-12-31','yyyy-mm-dd');

 

--删除
delete from table_name a
where a.create_time between to_date('2019-01-01','yyyy-mm-dd') and to_date('2019-12-31','yyyy-mm-dd');

 

posted @ 2021-11-17 14:31  IIIID  阅读(11)  评论(0编辑  收藏  举报