一。创建测试表
SCOTT@PROD> create table taotao(id number(10));
Table created.
二。插入数值1到9
SCOTT@PROD> begin
2 for i in 1..9 loop 3 insert into taotao values(i); 4 end loop; 5 end; 6 /PL/SQL procedure successfully completed.三。验证结果
SCOTT@PROD> select * from taotao;
ID---------- 1 2 3 4 5 6 7 8 99 rows selected.