in reply to DBI/MySQL/MariaDB clone tables across DB Connections
assuming you can disable the foreign key checks on the temporary table. If you can't, you'd have to sort the rows so parents come before children, and then that gets more complicated if there is a auto-increment ID column.my $txn= $db2->txn_scope_guard; $db2->resultset($table)->populate([ $db1->resultset($table)->hri->all ]); $txn->commit;
|
|---|