Oacle 순환 sql 빠 른 데이터 삽입

572 단어 DB.Oracle
구체 적 인 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;

좋은 웹페이지 즐겨찾기