我正在尝试运行一个适用于 MySQL 或其他 MySQL 连接器 API 的简单查询,
SELECT * FROM `table` WHERE type = 'farmer'
我尝试了使用 RMySQL 包的各种方法,它们都得到相同的错误
RS-DBI driver warning: (unrecognized MySQL field type 7 in column 1 imported as character)
Type = 'farmer'
(Query<-paste0("SELECT * FROM `table` WHERE type = '%",Type,"%'"))
res<-dbGetQuery(con, Query)
Query<-paste("SELECT * FROM `table` WHERE type = \'farmer\'")
Query<-paste("SELECT * FROM `table` WHERE type = 'farmer'")
我究竟做错了什么?