Oracle
oracle插入大量数据 标签描述

oracle插入大量数据,自己总结了两种方式,如下: 第一种:通过编写存储过程函数实现oracle数据海量插入 (insert之后记得commit哈!!!)图中插入了20万数据;查询语句 selectcount(0)fromtest_ems; 删除存储过程方式 dropproceduretest; 第二种:普通插入数据方法 DECLARE BEGIN FORIIN1..200000 LOOP INSERTINTOtest_emsVALUES(ems_seq.nextval,'a'||I,'nan'||I); COMMIT; ENDLOOP; END; 这也插入了20万条数据,查询语...