I have a table with 20 rows. Each row has a blob field that holds a txt file. Inside the text file is a million unique 10 digit numbers. How can I read and insert those numbers into another table in an efficient manner using oracle sql and plsql.
Description of what I'm doing now:
- I select the 20 rows.
- For each row, I open the text file and read each line and store the number into a nested table collection.
- I run a forall loop to insert those numbers along with some other fields into a table.
It works but takes a really long time. Is there a better way?
thank you!