
dbCommit(conn, ...)
dbRollback(conn, ...)
DBIConnection
object, as produced by the function
dbConnect
.con
is committed or rolled back.DBI.pdf
in the base directory of this package
or
dbConnect
dbSendQuery
dbGetQuery
fetch
dbCommit
dbGetInfo
dbReadTable
ora <- dbDriver("Oracle")
con <- dbConnect(ora)
rs <- dbSendQuery(con,
"delete * from PURGE as p where p.wavelength<0.03")
if(dbGetInfo(rs, what = "rowsAffected") > 250){
warning("dubious deletion -- rolling back transaction")
dbRollback(con)
}
Run the code above in your browser using DataLab