我正在尝试运行以下R代码:
idisc_ODBC <- odbcConnect("TEST",'sys', "oracle123",rows_at_time = 1)
ColumnsOfTable<- sqlColumns(idisc_ODBC, "GAData5")
varTypes <- as.character(ColumnsOfTable$TYPE_NAME)
names(varTypes) <- as.character(ColumnsOfTable$COLUMN_NAME)
colnames(gaData)<- as.character(ColumnsOfTable$COLUMN_NAME)
sqlSave(
channel = idisc_ODBC,
dat = gaData,
tablename = "GAData5",
append=TRUE,
rownames = FALSE,
varTypes = varTypes,
fast = F
)
但出现以下错误:-
sqlSave中的错误(通道= idisc_ODBC,数据= gaData,表名=“ GAData5” ,: 无法追加到表“ GAData5”