declare
--定义部分标识
maxrecords constant int:=3000;
--定义 maxrecords 为整型常量 3000
i int :=1;
--定义 i 为整型值变量,初值为 1
Begin
--执行部分标识
for i in 1..maxrecords loop
--i 从 1 循环到 maxrecords
Insert into v_8600000002014011407003917(SURVEYOBJECTID, REPORTPERIOD, VERSION, USESTATE, VERIFYCODE, SUBJECT_CODE, ANNUAL_REPORT, CHANGE_STATUS, GUTYPE, M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15, M16, M17, M18, M19, M20, INDEX_M5)
values (i,'20140000', 99999999999999, null, null, null, null, null, null, '2014', '山西', '太原', '小店区', '小店街道办事处', '1', '2', '1', '2', '1', '1', '3', '3', '3', '2014', '2', '19', i, '1', '1', 'XDJDBSC');
--向数据表中插入数据
end loop;
--结束循环
dbms_output.put_line(' 成功录入数据! ');
--显示成功录入数据信息
commit;
--提交结果
end;