Write from R to Teradata in 3.0

匆匆过客 提交于 2019-12-24 00:05:22

问题


R3.0 is not compatible with TeradataR and there are no plans to update the package or release the source code.

Does anyone have a code snippet that shows how to write a dataframe to a new or existing Teradata table?

sql <- "CREATE TABLE teradata.aaa (yr BIGINT, ct BIGINT, tax BIGINT)"  
tbl <- sqlQuery(ch, sql)  # Creates a table, works 
# What syntax to insert a dataframe 'myData' into this table?

回答1:


Sadly, I learned that bulk uploads are not supported. I had to simply INSERT each line of the data frame into the table.

This was time-consuming and I'm going to investigate whether a JDBC connection might be faster.



来源:https://stackoverflow.com/questions/17931439/write-from-r-to-teradata-in-3-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!