简体   繁体   中英

How to merge 2 database in xampp mysql

I have 2 databases, db and db1. I have new record from db1 and I want to put it in db. Now. I tried to import db1 however, it is not entering.. db and db1 has the same structures. However, they cannot be entered because a table already exists in one. But I need to merge the records together.

I have an sql file for db1. I just need to import records from it to db.

You need to only merge the records if the 2 databases have the same structure. Be careful about the identity column of the tables to prevent any conflicts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM