Copy related records from 3 tables to another 3 tables and maintain the relationship between them
1
vote
2
answers
1916
views
I have 3 tables that sore orders, order items and order item comments . I need to copy the data for one order to 3 new tables that have the same structure and maintain the relationship. the order will have a new id for the new table, order items should include this new created id for the order in its values and the comments should also have the id of the newly created order items.
Can this be done in one shot?
Asked by Carlos Blanco
(301 rep)
Oct 23, 2014, 03:23 PM
Last activity: Jun 21, 2025, 01:15 PM
Last activity: Jun 21, 2025, 01:15 PM