Oracle循环插入数据Demo
Oracle循环插入数据DemoOracle 循环插入数据 Demo:declaremaxnumber constant int:=1000;i int :=1;beginfor i in 1..maxnumber loopinsert into STUDENTINFORMATION("ID","NAME",SEX,ADDRESS,HOBBY)values(i,TO_CHAR('99'+i),'男','山东临沂','打篮球');end loop;dbms_output.put_line(' 成功录入数据! ');commit;end;测试插入条数:select "COUNT"(id) FROM STUDENTINFORMATION;