oracle 循环sql快速插入数据
具体的insert sql可以通过plsql查询结果上方工具栏中的【导出查询结果】按钮来快速生成
declare i integer;begin -- 循环开始 i := 10000000; loop begin insert into sx_wd_order (ID) values (i); insert into sx_wd_order_goods (ID, ORDER_ID) values (i,i); end; i := i + 1; -- 跳出循环 if i > 10010000 then exit; end if; end loop; commit;end;