| db_execute | R Documentation |
Executes a SQL statement on a database without returning results. The connection is created, used, and automatically closed.
db_execute(query, connection_name, ...)
query |
SQL statement to execute |
connection_name |
Name of the connection in config.yml |
... |
Additional arguments passed to DBI::dbExecute |
Number of rows affected
if (FALSE) {
rows <- db_execute("DELETE FROM cache WHERE expired = TRUE", "my_db")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.