create / drop view / table using rjdbc

£可爱£侵袭症+ 提交于 2019-12-24 09:49:12

问题


I am trying to automate an analytic process using rjdbc. I am looking for a way to create and drop a view from within R, using the rjdbc package.


回答1:


found it

dbSendUpdate(conn, "drop view VIEW_NAME")

dbSendUpdate allows you to send queries without retrieving data, so it is possible to use this method to create, drop, and manipulate views and tables




回答2:


or you can use dplyr::db_drop_table to drop the table



来源:https://stackoverflow.com/questions/39366295/create-drop-view-table-using-rjdbc

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