如何将两个mySQL数据库合并为一个? [英] How to merge two mySQL database into one?

查看:163
本文介绍了如何将两个mySQL数据库合并为一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个数据库,每个数据库包含不同的表

I have two database, each contain different tables

leave.sql和crm.sql

leave.sql and crm.sql

我想将我的所有请假表转移到crm数据库中

I want to transfer all my leave tables into the crm database

我应该怎么做?

推荐答案

如果另一个数据库具有不同的表,则离开数据库,那么您所要做的就是将数据导入到crm数据库中.最后,确保您的leaves脚本已连接到新的crm数据库.

If the other database has different tables then the leaves database then all you need to do is import the data into the crm database. Finally, make sure your leaves script is connected to the new crm database.

这篇关于如何将两个mySQL数据库合并为一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆