Oracle备份一张表

时间:2017-06-23 11:35:33   收藏:0   阅读:295

数据库:myOnly

创建表:myTable 的备份表 myTable_tmpe 

create table myTable_tmpe as select * from myTable ;

 

补充:

--在myTable 中添加一条学生的数据 ;
insert into myTable (id, type, code, name, parent_code,sync_flag) values (‘110‘, ‘student‘, ‘01‘, ‘学生‘, ‘00‘,‘‘);
commit;

--删除myTable 表原有数据 ;
delete from myTable  ;
commit;

原文:http://www.cnblogs.com/remember-forget/p/7068879.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!