dbRemoveTable,SQLiteConnection,character-method {RSQLite} | R Documentation |
Executes the SQL DROP TABLE
.
## S4 method for signature 'SQLiteConnection,character' dbRemoveTable(conn, name, ...)
conn |
An existing |
name |
character vector of length 1 giving name of table to remove |
... |
Needed for compatibility with generic. Otherwise ignored. |
The corresponding generic function DBI::dbRemoveTable()
.
library(DBI) con <- dbConnect(RSQLite::SQLite()) dbWriteTable(con, "test", data.frame(a = 1)) dbListTables(con) dbRemoveTable(con, "test") dbListTables(con) dbDisconnect(con)