Problems with RODBC sqlSave

后端 未结 6 888
轻奢々
轻奢々 2021-02-14 17:39

I\'m having some difficulty inserting a data frame into a mySql database using RODBC. Below is the code I\'m using:

data <- data.frame(analysedDataID=c(1,2,3         


        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 18:32

    If the issue is in fact with case-sensitivity, then it looks like there's an easy fix without changing any functions by using the "preserve" option, which appears in the line noted by Ari B. Friedman: "nochange=cnames". So, when you initially create your RODBC channel, you can simply specify that as the case option:

    my_sql_channel <<- odbcConnect("myOdbc", case="nochange")
    

提交回复
热议问题