Use external tables as follows:
CREATE TABLE ext1 EXTERNAL 'c:\myfile.txt' ( field1 char(20), field2 smallint );
To make a quick import to a regular table, do the following:
INSERT INTO realtable1 (field1, field2) SELECT field1, field2 FROM ext1;
Remember to disable triggers and indexes (if possible) before loading and reactivate them afterwards.
This information is from the Firebird FAQ: http://www.firebirdfaq.org/faq209/
Here is more information about using external tables, including file format information: http://www.delphiman.de/Bin/UsingExternalFilesAsTables.pdf
source share