dbDataType-methods            package:DBI            R Documentation

_D_e_t_e_r_m_i_n_e _t_h_e _S_Q_L _D_a_t_a _T_y_p_e _o_f _a_n _S _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

       dbDataType(dbObj, obj, ...)

_A_r_g_u_m_e_n_t_s:

   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. 

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

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

_R_e_f_e_r_e_n_c_e_s:

     See the Database Interface definition document 'DBI.pdf' in the
     base directory of this package or <URL:
     http://developer.r-project.org/db>.

_S_e_e _A_l_s_o:

     'isSQLKeyword' 'make.db.names'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     data(quakes)
     ora <- dbDriver("MySQL")
     sql.type <- dbDataType(ora, quakes)
     ## End(Not run)

