library(DBI)
library(RMariaDB)
con <- dbConnect(RMariaDB::MariaDB(), host = "mysql", group = "mygroup")
res <- dbSendQuery(con, "INSERT INTO sub_data (fname, lname, sex) VALUES ('Joe', 'Smith', 'male' )")
fname1 <- "Joe"; lname1 <- "Smith"; sex1 <- "male"
res <- dbSendQuery(con, "INSERT INTO sub_data (fname, lname, sex) VALUES (fname1, lname1, sex1 )")
result_create中的错误(conn @ptr,statement): “字段列表”中的未知列“fname1”[1054]