dbDataType {DBI} | R Documentation |
Determine an (approximately) appropriate SQL data type for an S object.
dbDataType(dbObj, obj, ...)
dbObj |
a DBIDriver object, e.g., ODBCDriver ,
OracleDriver .
|
obj |
R/Splus object whose SQL type we want to determine. |
... |
any other parameters that individual methods may need. |
This is a generic function. The default method determines the SQL type of an R/Splus object according to the SQL 92 specification, which may serve as a starting point for driver implementations.
A character string specifying the SQL data type for obj
.
See the Database Interface definition document
DBI.pdf
in the base directory of this package
or http://developer.r-project.org/db.
## Not run: ora <- dbDriver("Oracle") sql.type <- dbDataType(ora, x) ## End(Not run)