问题
I have 2 servers one servers runs Microsoft SQL Server and the other one is using 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
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.
回答1:
1st link on google states...
you need to install this:
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/
to link up the servers and then use openquery to execute MS SQL queries.
来源:https://stackoverflow.com/questions/16220490/if-there-a-way-i-can-inner-join-a-ms-sql-table-to-a-mysql-table-in-one-query-usi