You can copy data without using Delphi:
Code:
-- untested, might need some more parenthesis
INSERT INTO `B` (foo, bar)
SELECT foo, bar FROM `A` WHERE id = 42;
That requires less network traffic and should be much faster.
Maybe that would be a better alternative for you.