R: Best Practices - dplyr and odbc multi table actions (retrieved from SQL)
问题 Say you have your tables stores in an SQL server DB, and you want to perform multi table actions, i.e. join several tables from that same database. Following code can interact and receive data from SQL server: library(dplyr) library(odbc) con <- dbConnect(odbc::odbc(), .connection_string = "Driver={SQL Server};Server=.;Database=My_DB;") Table1 <- tbl(con, "Table1") Table1 # View glimpse of Table1 Table2 <- tbl(con, "Table2") Table2 # View glimpse of Table2 Table3 <- tbl(con, "Table3") However