首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

oracle 循环sql高速插入数据

2012-08-19 
oracle 循环sql快速插入数据具体的insert sql可以通过plsql查询结果上方工具栏中的【导出查询结果】按钮来快

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;

热点排行