mysql - 跨多个服务器连接表

标签 mysql sql join

我想我们可以做 database1.table1 join database2.table2 on 等等。连接同一台服务器上不同数据库中的表。
是否可以跨不同的 sql server 连接表?

最佳答案

你可以使用FEDERATED Storage Engine .

 The FEDERATED storage engine lets you access data from a remote
 MySQL database without using replication or cluster technology.
 Querying a local FEDERATED table   automatically pulls the data
 from the remote (federated) tables.  No data is stored on the local tables.

The site shows a good illustration

关于mysql - 跨多个服务器连接表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17269098/

相关文章:

mysql - 向mysql表中插入一条新记录,其中一个值加1

带有微秒的 MySQL where 子句

php - MySQL 使用连接进行查询搜索

PHP MYSQL 编辑表单,试图将行内爆/分解为复选框?

php - 将mysql查询限制为1个结果?

sql - 在存储过程中向表中插入常量值

mysql - 添加内部联接和分组依据时的 SQL 查询时间差给出了错误的计算

c# - 神秘的数据类型转换为另一种数据类型错误

mysql - 如何对多个表进行 SQL Join(FK 表具有循环结果共享 ID)

php - 加入一个 View 与另一个 View 性能