Create SQL Tuples from a List
listValuesToSql(x)
x | a list defining |
---|
vector of character strings each of which represents one assignment
in x
x <- list(name = "Peter", birthday = as.POSIXct("1981-12-13")) setCurrentSqlDialect("msaccess") cat(listValuesToSql(x))#> 'Peter',#1981-12-13## Note that the representation of a date and time is different in MySQL setCurrentSqlDialect("mysql") cat(listValuesToSql(x))#> "Peter",'1981-12-13'