-1

In my query im using for loop. Each and every time when for loop is executed, at the end some values has to be inserted into table. This is time consuming because for loop has many records. Due to this each and every time when for loop is executed, insertion is happening.

Is there any other way to perform insertion at the end after the for loop is executed?

For i in 1..10000 loop
.... --coding
 insert into datas.tb values(j,predictednode);  -- j and predictednode are variables which will change for every loop

End loop;

Instead of inserting each and every time i want the insertion should happen at the end.

mnagel
  • 6,729
  • 4
  • 31
  • 66
user2659199
  • 101
  • 1
  • 8

1 Answers1