RODBC: merge tables from different databases (channel)

后端 未结 2 1731
盖世英雄少女心
盖世英雄少女心 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:11

    In Netezza it is working fine using sqlQuery function.

    require("RODBC")
    
    ch <- odbcConnect("NZSQL")
    
    dim.cust.acc1  <- sqlQuery(ch,"Select * from DB1..DIM_ACCOUNT a inner join DB2..BASE_201707 b on a.id_number=b.id_number limit 1000",believeNRows = FALSE)
    

提交回复
热议问题