isSQLKeyword             package:RMySQL             R Documentation

_I_s _a _n_a_m_e _a_n _S_Q_L _k_e_y_w_o_r_d?

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

     Verify whether a character vector contains SQL keywords

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

     isSQLKeyword(x, keywords=.SQLKeywords, case=c("lower", "upper", "any")[3])

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

       x: character vector of potential SQL identifiers. 

keywords: a character vector with SQL keywords. By default it's
          `.SQLKeywords', supplied in the RS-DBI S chapter or R
          package. 

    case: a character string specifying whether to make the comparison
          as lower case, upper case, or any of the two. it defaults to
          `any'. 

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

     a logical vector specifying whether the corresponding entry is or
     is not an SQL keyword.

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

     The set of SQL keywords is stored in the character vector
     `.SQLKeywords' and reflects the SQL ANSI/ISO  standard as
     documented in "X/Open SQL and RDA", 1994, ISBN 1-872630-68-8.
     Users can easily override or update this vector.

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

     `make.SQL.names'

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

     oracle.keywords <- c("CLUSTER", "COLUMN", "MINUS", "DBNAME)
     isSQLKeyword(nam, c(.SQLKeywords, oracle.keywords))
     [1]  T  T  T  F

