日期:2014-05-16 浏览次数:20571 次
i number; --用for实现 begin for i in 101 .. 10000 loop INSERT INTO "DATEBASE"."TABLE" (GUID, COUNT, STATE) VALUES (SYS_GUID(), i, '0'); end loop; end;
i number; --用while实现 begin i :=101; while i<=10000 loop INSERT INTO "DATEBASE"."TABLE" (GUID, COUNT, STATE) VALUES (SYS_GUID(), i, '0'); i :=i+1; end loop; end;