Archive Parent / Child Table Hierarchy in MySQL

Posted by Eric J. on Stack Overflow See other posts from Stack Overflow or by Eric J.
Published on 2010-06-10T23:27:09Z Indexed on 2010/06/10 23:32 UTC
Read the original article Hit count: 190

Filed under:
|
|

If I have a Parent and Child table in MySQL related by a foreign key, is it possible using a SQL statement to move certain rows from Parent and the related rows from Child into archive tables (e.g. Parent_Archive and Child_Archive) in an atomic manner?

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql