Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 rjdbc 自动化分析过程。我正在寻找一种使用 rjdbc 包从 R 中创建和删除视图的方法。
找到了
dbSendUpdate(conn, "drop view VIEW_NAME")
dbSendUpdate 允许您在不检索数据的情况下发送查询,因此可以使用此方法创建、删除和操作视图和表
或者您可以使用 dplyr::db_drop_table 删除表