Query two tables from different schema

前端 未结 5 1926
醉话见心
醉话见心 2020-12-17 19:30

I have two different schemas in Oracle (say S1, S2) and two tables in those schemas (say S1.Table1, S2.Table2). I want to query these two tables from schema S1.

Both

5条回答
  •  春和景丽
    2020-12-17 19:53

    You don't specify whether this feature is needed as part of production code, or if you're trying to join the two tables to perform some one-time analysis. If it's the latter, you can use Microsoft Access to create a local mdb file that contains linked tables to the two databases, then write a local Access query that refers to those two tables. You could then use that mdb as a data source for various reporting tools.

    The queries might not use indexes as efficiently as a native Oracle db link, but it would be better than nothing.

    edit: Nevermind - I see that this was already suggested above.

提交回复
热议问题