如何在Oracle中批量插入数据

来源:互联网 发布:如何删除mac的已购软件 编辑:程序博客网 时间:2024/05/20 09:21
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://linkyou.blog.51cto.com/1332494/282631
例子如下:
begin
for x in 1..30000 loop
insert into  app_subsc_ctrl c
(c.gmt_start,c.gmt_end,c.Status,c.app_subsc_ctrl_id,c.subsc_user_id,c.app_instance_id,c.app_id,c.cancel_status,c.cancelled_times)
values(to_date('2008-01-01','yyyy-mm-dd'),to_date('2008-01-01','yyyy-mm-dd'),'1','ascizhaowei'||to_char(x),'suzhaowei'||to_char(x),
'aiizhaowei'||to_char(x),
       'aidzhaowei'||to_char(x),0,0);
end loop;
end;*/

本文出自 “测试与交流” 博客,请务必保留此出处http://linkyou.blog.51cto.com/1332494/282631