您的位置:首页 > 数据库 > Oracle

orcale 循环插入测试数据

2012-11-06 13:56 225 查看
  declare

        maxrecords constant int:=10000;

        i int :=1;

    begin

        for i in 1..maxrecords loop

          insert into 设备表 (ID) values(SYS_GUID);

        end loop;

    dbms_output.put_line(' 成功录入数据! ');

    commit;

    end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ORACLE