相关文章推荐

oracle插入大量数据,自己总结了两种方式,如下:

第一种:通过编写存储过程函数实现oracle数据海量插入

be756ce082d0a2078fd07b4279d2797.png (insert之后记得commit哈!!!) 图中插入了20万数据;查询语句

select count(0) from test_ems;
  

删除存储过程方式

drop procedure test;
  

第二种:普通插入数据方法

DECLARE
BEGIN
	FOR I IN 1..200000
	INSERT INTO test_ems VALUES(ems_seq.nextval,'a'||I,'nan'||I);
	COMMIT;
END LOOP;
  

这也插入了20万条数据,查询语句同上面一样;

 
推荐文章