Oracle 批量造数据

1、通过存储过程方式

CREATE OR REPLACE procedure XXZY.p_test
is 
i number; 
begin 
for i in 1..210000 loop
INSERT INTO test_job VALUES(i,'张三'||to_char(i));
end LOOP;


EXCEPTION 
WHEN OTHERS THEN 
DBMS_output.PUT_LINE(SQLERRM); 
end p_test;
/

 



posted @ 2015-01-15 17:27  德玛西亚冲锋  阅读(1330)  评论(0编辑  收藏  举报