declare i integer;
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/[@more@]declare i integer;
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/[@more@]declare i integer;
begin i:=1;
loop insert into T(ID, dt, VALUE) values(SEQ.nextval, to_date('2005-10-10', 'YYYY-MM-DD'),i);
i:=i+1;
exit when i>10;
end loop;
commit;
end;
/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8806316/viewspace-899568/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8806316/viewspace-899568/