toSQLStringSet         package:AnnotationDbi         R Documentation

_C_o_n_v_e_r_t _a _v_e_c_t_o_r _t_o _a _q_u_o_t_e_d _s_t_r_i_n_g _f_o_r _u_s_e _a_s _a _S_Q_L _v_a_l_u_e _l_i_s_t

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

     Given a vector, this function returns a string with each element
     of the input coerced to character, quoted, and separated by ",".

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

     toSQLStringSet(names)

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

   names: A vector of values to quote

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

     If 'names' is a character vector with elements containing single
     quotes, these quotes will be doubled so as to escape the quote in
     SQL.

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

     A character vector of length one that represents the input vector
     as a SQL value list.  Each element is single quoted and elements
     are comma separated.

_N_o_t_e:

     Do not use 'sQuote' for generating SQL as that function is
     intended for display purposes only.  In some locales, 'sQuote'
     will generate fancy quotes which will break your SQL.

_A_u_t_h_o_r(_s):

     Herve Pages

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

     toSQLStringSet(letters[1:4])
     toSQLStringSet(c("'foo'", "ab'cd", "bar"))

