If there a way I can inner join a MS Sql table to a MySql Table in one query using MySql?

此生再无相见时 提交于 2019-12-29 01:47:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!