oracle循环插入数据用于测试

    declare
        maxrecords constant int:=7030;
        i int :=7004;
    begin
        for i in 7004..maxrecords loop
           insert into softphone_status (agentid) values('agent'||i);
           dbms_output.put_line('agent'||i);
        end loop;
    
    commit;
    end;
posted @ 2011-11-10 19:32  uu.Net  阅读(268)  评论(0编辑  收藏  举报