跨多个服务器连接表

时间:2013-06-24 06:19:51

标签: mysql sql join

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

1 个答案:

答案 0 :(得分:3)

您可以使用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