Oracle 存储过程脚本 插入十万条记录
2009-04-19 00:41
381 查看
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;
相关文章推荐
- 数据库操作_连接SQL Server数据库示例;连接ACCESS数据库;连接到 Oracle 数据库示例;SqlCommand 执行SQL命令示例;SqlDataReader 读取数据示例;使用DataAdapter填充数据到DataSet;使用DataTable存储数据库表;将数据库数据填充到 XML 文件;10 使用带输入参数的存储过程;11 使用带输入、输出参数的存储过程示;12 获得数据库中表的数目和名称;13 保存图片到SQL Server数据库示例;14 获得插入记录标识号;Exce
- oracle 存储过程循环插入10000条记录---存储过程
- oracle 存储过程循环插入10000条记录---存储过程
- 存储过程结合bcp--将数据库记录导出成SQL脚本的形式。
- oracle 执行包含update语句的存储过程并获取结果记录
- oracle数据定时插入和修改数据存储过程
- 两个存储过程:一、使用存储过程动态创建数据表。二、插入新记录。
- 使用MySQL存储过程连续插入多条记录
- Oracle 创建及调用存储过程,脚本示例
- SQL存储过程将符合条件的大量记录批量删除脚本
- oracle 采用游标循环插入数据的存储过程
- oracle 存储过程最好的记录错误方式
- oracle 建表空间,授权,建表,建存储过程脚本
- 在存储过程中取得刚刚插入的记录的某个字段,将其输出,由C#接受OUTPUT返回参数
- 在存储过程中取得刚刚插入的记录的某个字段,将其输出,由C#接受OUTPUT返回参数
- oracle 执行包含update语句的存储过程并获取结果记录
- oracle 存储过程记录
- 传参数无返回值的 java 调oracle的存储过程.(向数据库表中插入数据)
- oracle 存储过程记录
- oracle存储过程中传入日期参数,插入到表