db_ExecuteSQL | R Documentation |
to execute statements like update a row
db_ExecuteSQL(db, SQLString, doNotChangePool = FALSE, invisibleReturn = TRUE)
db |
database access 'handle' |
SQLString |
the SQL query to be performed |
doNotChangePool |
boolean that sets whether the pool has to be locked/ released inside this function. Usually this needs to be done, so default is FALSE. Set to TRUE if this locking/release is done outside of the function. Note that there is a sort of bug when working with the pool::dbWriteTable : when a sql constraint like UNIQUE is defined for the table used, this may result in a locked database upon error. It's advisable to set doNotChangePool to TRUE to prevent this from happening |
invisibleReturn |
if TRUE (default), then nothing is returned, if FALSE then the result of the SQLString will be returned (see SQL for what it can be) |
result from the SQL query, usually a data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.