简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM