dbBuildTableDefinition        package:RMySQL        R Documentation

_B_u_i_l_d _t_h_e _S_Q_L _C_R_E_A_T_E _T_A_B_L_E _d_e_f_i_n_i_t_i_o_n _a_s _a _s_t_r_i_n_g

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

     Build the SQL CREATE TABLE definition as a string for the input
     data.frame

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

     dbBuildTableDefinition(dbObj, name, obj, field.types = NULL, row.names = TRUE, ...)

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

   dbObj: any DBI object (used only to dispatch according to the 
          engine (e.g., MySQL, Oracle, PostgreSQL, SQLite) 

    name: name of the new SQL table

     obj: an R object coerceable to data.frame for which we want  to
          create a table

field.types: optional named list of the types for each field  in 'obj'

row.names: logical, should row.name of 'value' be exported as a
          'row_names' field? Default is TRUE

     ...: reserved for future use

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

     The output SQL statement is a simple 'CREATE TABLE' with suitable
     for 'dbGetQuery'

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

     An SQL string

_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://stat.bell-labs.com/RS-DBI>.

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

     'MySQL', 'dbConnect', 'dbSendQuery', 'dbGetQuery', 'fetch',
     'dbCommit', 'dbGetInfo', 'dbReadTable'.

