目前有一张表,数据量大概9亿左右,要把里面的数据迁移到同库下的另一张表里,请问应该怎么弄?
想建立一个事务,每insert进去1W条就提交一下,应该怎么写?
想建立一个事务,每insert进去1W条就提交一下,应该怎么写?
解决方案 »
- 如何保持where in查询后的顺序
- 这种多表的SQL语句怎么写。。。。。求教!!!!
- question
- Oracle.DataAccess.dll 的问题
- java.sql.SQLException: Listener refused the connection with the following error:
- 关于导出导入问题--求救
- 求高手帮忙把一个SQL存储过程转成ORACLE ,麻烦了,项目中急用
- 请教Oracle Developer 2000在那里有下载
- Database Control - orcl打不开 地址是https://vioilum3ke4wp6e:1158/em
- 提高服务器的cpu和内存的利用率
- 请教一下在sqlplus下无法登陆数据库的问题
- 关于sqlserver存储过程搬到oracle数据库 大神们请指教
1.用 create table as 产生一张表 new_table (最好加上nologing)或者将数据库 或者表空间设置为 nologing
2.将原表target_table的数据 插入到new_table
3.重建索引
4.drop 原表target_table
5.改名new_table--》target_table 索引改名 (应为index的名字是不能重复的 这个有点恶心)
forall
批量提交
insert into t2 select * from t1//我测试了一下,每次执行会覆盖以前的插进来的数据