How to pass a vector or data.frame from R to Oracle as a bind variable in a select statement using ROracle.
Recently I was asked how to bind an R variable to a SQL statement executed with ROracle. In this case it wasn’t a simple “select * from table where x = :b1 and y = :b2.” You can do those quite easily with a data.frame with only one row in it using dbGetQuery(connection, sqlstatement, data.frame)…