[英]If there a way I can inner join a MS Sql table to a MySql Table in one query using MySql?
I have 2 servers one servers runs Microsoft SQL Server and the other one is using MySql.我有两台服务器,一台运行 Microsoft SQL Server,另一台使用 MySql。
I need to be able to inner join a table from MS SQL name it "A" to a table "B" located on a different server that uses MySql我需要能够将一个表从 MS SQL 命名为“A”到位于使用 MySql 的不同服务器上的表“B”
So I want to be able to do something like this所以我希望能够做这样的事情
SELECT A.*, B.* FROM A INNER JOIN B ON A.id=B.id LIMIT 100
How can I do this?我怎样才能做到这一点? note that both servers are on the same network.
请注意,两台服务器都在同一网络上。
1st link on google states...谷歌状态的第一个链接...
you need to install this:你需要安装这个:
http://www.mysql.com/products/connector/ http://www.mysql.com/products/connector/
and follow this guide:并遵循本指南:
http://technikhil.wordpress.com/2007/05/13/getting-microsoft-sql-server-and-mysql-to-talk/ http://technikhil.wordpress.com/2007/05/13/getting-microsoft-sql-server-and-mysql-to-talk/
to link up the servers and then use openquery to execute MS SQL queries.连接服务器,然后使用 openquery 执行 MS SQL 查询。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.