Oracle 插入测试

create table test(
t_id char(5) not null,
t_name varchar2(8) not null,
constraint pk_test primary key(t_id)
);  
set timing on;

declare i integer; 
begin i:=1; 
loop insert into test(t_id, t_name) values(SEQ_TEST.nextval, 'xxx');
i:=i+1; 
exit when i>100000; 
end loop;
commit;
end;

你可能感兴趣的:(oracle,测试,table,null,Integer,insert)