Oracle 存储过程脚本 插入十万条记录

 create table TEE16

(
  DOUBLE1  NUMBER(10,4) default 0 not null,DOUBLE2  NUMBER(10,4) default 0 not null,
  DOUBLE3  NUMBER(10,4) default 0 not null,DOUBLE4  NUMBER(10,4) default 0 not null,
  DOUBLE5  NUMBER(10,4) default 0 not null,DOUBLE6  NUMBER(10,4) default 0 not null,
  DOUBLE7  NUMBER(10,4) default 0 not null,DOUBLE8  NUMBER(10,4) default 0 not null,
  DOUBLE9  NUMBER(10,4) default 0 not null,DOUBLE10 NUMBER(10,4) default 0 not null,
  DOUBLE11 NUMBER(10,4) default 0 not null,DOUBLE12 NUMBER(10,4) default 0 not null,
  DOUBLE13 NUMBER(10,4) default 0 not null,DOUBLE14 NUMBER(10,4) default 0 not null,
  DOUBLE15 NUMBER(10,4) default 0 not null,DOUBLE16 NUMBER(10,4) default 0 not null,
  DOUBLE17 NUMBER(10,4) default 0 not null,DOUBLE18 NUMBER(10,4) default 0 not null,
  DOUBLE19 NUMBER(10,4) default 0 not null,DOUBLE20 NUMBER(10,4) default 0 not null
)

-- Add comments to the table 
comment on table TEE16 is 'GRID大数据量测试';

-- Add comments to the columns 
comment on column TEE16.DOUBLE1 is '数据一';
comment on column TEE16.DOUBLE2 is '数据二';
comment on column TEE16.DOUBLE3 is '数据三';
comment on column TEE16.DOUBLE4 is '数据四';
comment on column TEE16.DOUBLE5 is '数据五';
comment on column TEE16.DOUBLE6 is '数据六';
comment on column TEE16.DOUBLE7 is '数据七';
comment on column TEE16.DOUBLE8 is '数据八';
comment on column TEE16.DOUBLE9 is '数据九';
comment on column TEE16.DOUBLE10 is '数据十';
comment on column TEE16.DOUBLE11 is '数据十一';
comment on column TEE16.DOUBLE12 is '数据十二';
comment on column TEE16.DOUBLE13 is '数据十三';
comment on column TEE16.DOUBLE14 is '数据十四';
comment on column TEE16.DOUBLE15 is '数据十五';
comment on column TEE16.DOUBLE16 is '数据十六';
comment on column TEE16.DOUBLE17 is '数据十七';
comment on column TEE16.DOUBLE18 is '数据十八';
comment on column TEE16.DOUBLE19 is '数据十九';
comment on column TEE16.DOUBLE20 is '数据二十';
-------------------------------------------------------
declare
count1 number(10):=1;

begin
    loop
      insert into iplat.tee16
        (
         double1,double2,double3,double4,double5,double6,double7,double8,double9,double10,
         double11,double12,double13,double14,double15,double16,double17,double18,double19,double20
        )
      values
        (
         count1,11111.1111,22222.2222,33333.3333,44444.4444,55555.5555,66666.6666,77777.7777,88888.8888,99999.9999,
         12345.1234,12222.1111,23333.2222,34444.3333,45555.4444,56666.5555,67777.6666,78888.7777,89999.8888,
         90000.9999    
        );
        count1 := count1+1;
       exit when count1>100000;
     end loop;
end;

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值