database
dbplyr
list connection driver
::odbcListDrivers() odbc
Connect to DB
library(DBI)
<- DBI::dbConnect(odbc::odbc(), "BILIVE", UID="JUMP_B", PWD="******") con
list table
dbListTables(con, schema = "JUMP_B")
dbListTables(con, schema = "SB_BI")
push table into database
dbWriteTable(con, "mtcars", mtcars[1:5, ])
RODBC
Connect to DB
library(RODBC)
<- odbcConnect('BILIVE',
channel uid = 'JUMP_B',
pwd = '******')
Get data
<- sqlQuery(con, "select /*+ PARALLEL(11) */ * from nnb_cus") cus
This function load all rows