how to export data frame (R) into Oracle table

倾然丶 夕夏残阳落幕 提交于 2021-01-27 13:41:29

问题


I need a piece of advice how to transfer data from R into Oracle table.

I have a R-dataframe and I would like to transfer it into the specific Oracle table (the whole dataframe or some columns).

As an option, transfer dataframe which is placed in a csv file via R into Oracle.

I have scanned similar items throughout the inet but not find a clear and plain examples.


回答1:


Check the metrod dbWriteTable of the package RJDBC

Here an example

 dbWriteTable(jdbcConnection,"TABLE_NAME",data.frame.name.,   rownames=FALSE, overwrite = TRUE, append = FALSE)

Adjust options as required. For overwrite TRUE a new table is created in the schema of your connection user.



来源:https://stackoverflow.com/questions/39365741/how-to-export-data-frame-r-into-oracle-table

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