Pass R Vector to Sql query

前端 未结 4 623
小蘑菇
小蘑菇 2020-12-21 01:14

I\'m using RODBC package to access my sql database in R. I haven\'t been able to find any useful information on how to pass a vector from R to sql as a vector.



        
4条回答
  •  Happy的楠姐
    2020-12-21 01:41

    The new dbplyr package has the best answer for this. It allows any R object to be used, and automatically converts it to SQL

    https://db.rstudio.com/dplyr/

提交回复
热议问题