| dbDataType-methods {DBI} | R Documentation |
Determine an (approximately) appropriate SQL data type for an R/S-Plus object.
dbDataType(dbObj, obj, ...)
dbObj |
a DBIDriver object, e.g., ODBCDriver,
OracleDriver.
|
obj |
R/S-Plus 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/S-Plus 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:
data(quakes)
ora <- dbDriver("MySQL")
sql.type <- dbDataType(ora, quakes)
## End(Not run)