
dbColumnInfo(res, ...)
DBIResult
.res
. Methods
MUST include name
, field.type
(the SQL type),
and data.type
(the R data type) columns, and MAY contain other
database specific information like scale and precision or whether the
field can store NULL
s.
DBIResult-class
,
SQL
, dbBind
,
dbClearResult
, dbFetch
,
dbGetInfo
, dbGetRowCount
,
dbGetRowsAffected
,
dbGetStatement
,
dbHasCompleted
, dbIsValid
con <- dbConnect(RSQLite::SQLite(), ":memory:")
rs <- dbSendQuery(con, "SELECT 1 AS a, 2 AS b")
dbColumnInfo(rs)
dbFetch(rs)
dbClearResult(rs)
dbDisconnect(con)
Run the code above in your browser using DataLab