RODBC: merge tables from different databases (channel)

后端 未结 2 1734
盖世英雄少女心
盖世英雄少女心 2021-01-18 19:36

I\'m using RODBC package to connect to Oracle databases from R but I didn\'t succeed in merging tables from different databases without \"downloading\" the tables (I don\'t

2条回答
  •  爱一瞬间的悲伤
    2021-01-18 20:24

    This question is similar to the question here. The answer seems to be that RODBC cannot access two different databases in a single query, using sqlQuery(...), because the connection (channel) is database-specific. So either

    (1) do it using downloads (as in your code), or 
    (2) have your DBA put both tables in a single database, or 
    (3) use something other than R. 
    

提交回复
热议问题