There are two tables. Table User has columns as below
ID,NAME,AGE
And Table Asset has columns as below
ID,ID_USER,PRICE
Asset's ID_USER is the ID of User.
Table User's id uses sequece seq_t_user. Table Asset's id uses sequece seq_t_asset.
Now There are 1000000 users waiting to be inserted. We can use for loop to process every record seperately.
v_id_user = seq_t_user.nextval();
insert into User values(v_id_user, 'Lilie', 20);
insert into Asset values(seq_t_asset.nextval(), v_id_user, 1000);
But this is very time consuming. Is there any way to batch insert into two tables at the same time?