Oracle快速复制表

清空表 

oracle --truncate truncate table gh_qytc_ls; //从一个表插入到另外一个表 insert into gh_qytc_ls SELECT * FROM gh_qytc tc; 快速copy一张表数据到另外一张表 1、创建一个临时表,字段和要用的表相同 create table gh_qyghgx_temp as select * from gh_qyghgx where qybm='F227'; 2、查询临时表是否创建成功 select * from gh_qyghgx_temp; 3、删除临时表的那条记录 truncate table gh_qyghgx_temp; 4、把要备份的表的数据放入临时表 insert into gh_qyghgx_temp select * from gh_qyghgx 5、查询是否插入成功 select count(*) from gh_qyghgx_temp;

 

转载于:https://www.cnblogs.com/yongguang1990/p/10184147.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值