Try to make a plain-text file with the data
and then acquire it into a external-file table as follows...
- The file must contain the data in plain fixed-width format like ...
mydata.txt:
123PRODUCT ONE 20000
4321PRODUCT TWO 8990
3321PRODUCT THREE 2991
...
- Create a temporal table into your database
to import the data file..
create table import_table
external file "mydata.txt" (
key char(5),
description char(29),
amount char(8),
newline char(1));
/ the "newline" field must be char(2) for windows text files /
At this point, you can access to each line
in the data file as a record in the "import_table", in example:
SELECT KEY, DESCRIPTION, AMOUNT
FROM IMPORT_TABLE;
..And so, you can insert into another table..
INSERT INTO MY_TABLE (<My_Field_List>)
SELECT <My_Field_List> FROM IMPORT_TABLE;
I have inserted up to 100.000 records
with reasonable speed.
Read the Interbase documentation about EXTERNAL-FILE tables.
Sorry, if my English is not the best..