dbEscapeStrings            package:RMySQL            R Documentation

_E_s_c_a_p_e _S_Q_L-_s_p_e_c_i_a_l _c_h_a_r_a_c_t_e_r_s _i_n _s_t_r_i_n_g_s

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

     is expected to be sorted by the grouping field.

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

     dbEscapeStrings(con, strings, ...)

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

     con: a connection object (see 'dbConnect').

 strings: a character vector.

     ...: any additional arguments to be passed to the dispatched
          method.

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

     'dbEscapeStrings' 

     Currently, only the 'MySQL' driver implements this method.

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

     A character vector with SQL special characters properly escaped.

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

     'MySQL' 'dbSendQuery' 'fetch'

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

     ## Not run: 
     tmp <- sprintf("select * from emp where lname = %s", "O'Reilly")
     sql <- dbEscapeString(con, tmp)
     dbGetQuery(con, sql)
     ## End(Not run)

