MySQL Forums
Forum List  »  Newbie

merging tables
Posted by: Walter deMilly
Date: December 29, 2017 11:58AM

I have a mysql db which has some tables I want to merge.

Table 1 has data from 1/1/2013 to 12/01/2017.

Table 2 has data from 11/15/2017 to 12/29/2017.

The tables have identical schemas.

I want to merge these tables in a way that preserves the entirety of Table 2,
and "deletes" any data in Table 1 which goes beyond 11/14/2017.

There are about 210 tables which are structured this way.

I can do this manually but when I tried the other day, I lost all of the data in table 2.

Is there a script or method you can suggest?

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
merging tables
December 29, 2017 11:58AM
December 29, 2017 12:31PM
December 29, 2017 12:45PM
December 29, 2017 03:53PM
December 29, 2017 10:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.