i have a db with a field nunmber and date, i need to insert 100 records into it, with a number icnrement and date increment.. replies will be helpful
thanks
parthi
declare
fld1 number :=0; 'start value field1
inc_fld1 number :=5 ' increment for field1
fld2 date :=to_date('01/01/2003','DD/MM/YYYY'); 'start value field1
inc_fld2 number :=2 ' increment for field2
nb_rec number :=100; 'nb of insert
begin
for i in 1..nb_rec loop
insert into table1
values (fld1,fld2,...);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.