IT, 프로그래밍/Database (Oracle)

대량의 테스트 데이터를 생성하는 프로시져

오리@ 2018. 9. 6. 16:27


1
2
3
4
5
6
7
8
9
10
11
create or replace procedure bulkInsert(maxLoop in number:=1)
IS
BEGIN
FOR temp IN 1..maxLoop
LOOP
insert into blogBoard values (BOARD_SEQ.NEXTVAL, 'testContent', sysdate, 'testEmail''testTitle''testWriter');
commit;
END LOOP;
END;
 
exec bulkInsert(587);
cs

프로시져 연습