R语言中sql语句带变量

R中向MySQL数据库插入数据时,sql语句带变量,变量为x,y,z

s = paste(x,y,z,sep=",")
sql = paste("insert into table_name value(",s,")",sep="")
result = dbSendQuery(mysqlconnection, sql)

你可能感兴趣的:(笔记,r语言,sql)