asked on
ASKER
SQL (Structured Query Language) is designed to be used in conjunction with relational database products as of a means of working with sets of data. SQL consists of data definition, data manipulation, and procedural elements. Its scope includes data insert, query, update and delete, schema creation and modification, and data access control.
TRUSTED BY
I suggest you still do it in batches. For example if you have a numeric primary key:
insert into table2 select * from table1 where primary_key_column between 1 and 5000;
Then just have Delphi call that statement, changing 1 and 5000 to the next batch, and so on.