Oracle批量插入数据

上一篇 / 下一篇  2014-03-04 14:46:46

在表中批量插入100w条数据,其中ID自增,电话号码为13开头的11位数,自增,时间不能重复
 
declare
i int;
begin
for i in 1..1000000 loop
insert  into t_push_smresponselog values
(i,'1300'||LPAD(i,7,'0'),'是',to_date('2013-7-19 00:00:00','yyyy-mm-dd hh24:mi:ss')+(i/24/60/60) ,'1','42','','7','1','','','','','10658099020202','4','10009999','','','','0');
end loop;
commit;
end;
/

TAG:

 

评分:0

我来说两句

Open Toolbar