Oracle: Using Loop and Random
Create table test_normal (empno number(10), ename varchar2(30), sal number(10));Begin
For i in 1..1000000
Loop
Insert into test_normal
values(i, dbms_random.string('U',30), dbms_random.value(1000,7000));
If mod(i, 10000) = 0 then
Commit;
End if;
End loop;
End;/
0 Comments:
Post a Comment
<< Home