How to JOIN a table in MySQL with a table in Oracle

戏子无情 提交于 2021-02-04 19:47:25

问题


Now, I'm pretty sure that it's not possible, but I want to 1) Confirm this, and 2) Hear alternatives.

My solution today was to run the MySQL query, then use its result to construct a "NOT IN ('value1', 'value2', 'value3')" string, which I tacked onto the Oracle query before running it. Rather cumbersome, but it worked, and it's fast enough so far.

What is the typical way of solving this problem?


回答1:


Typical way, assuming the Oracle & MySQL databases are allowed to talk to one another, would be to create a database link on the Oracle instance, connecting to the MySQL one: http://www.dba-oracle.com/t_how_create_database_link.htm

Then you can run queries in Oracle as though you're only ever working on a single database...



来源:https://stackoverflow.com/questions/3464050/how-to-join-a-table-in-mysql-with-a-table-in-oracle

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