问题
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