Learn R Programming

RMySQL (version 0.4-6)

SQLDataType: Determine the SQL Data Type of an R/S object

Description

Determine an (approximately) appropriate SQL data type for an R/S object

Usage

SQLDataType(mgr, obj, ...)

Arguments

mgr
a dbManager object, e.g., MySQLManager, OraManager.
obj
R/S object whose SQL type we want to determine.
...
any other parameters that individual methods may need.

Value

  • A character string specifying the SQL data type for obj.

Details

This is a generic function.

See Also

isSQLKeyword make.SQL.names

Examples

Run this code
ora <- dbManager("MySQL")
sql.type <- SQLDataType(ora, x)

Run the code above in your browser using DataLab