ITPub博客

首页 > 数据库 > Oracle > oracle 匿名存储过程插入大量测试数据

oracle 匿名存储过程插入大量测试数据

原创 Oracle 作者:wangzhensheng 时间:2007-02-14 13:12:21 0 删除 编辑
declare i integer;
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/[@more@]declare i integer;
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-899568/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle 9i 建库模板
请登录后发表评论 登录
全部评论

注册时间:2013-01-02

  • 博文量
    137
  • 访问量
    260336