无法追加到表格

时间:2018-11-26 09:34:14

标签: r database oracle data-analysis

我正在尝试运行以下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”

0 个答案:

没有答案