I am trying to run a simple query that works with MySQL or other MySQL connector APIs,
SELECT * FROM `table` WHERE type = 'farmer'
I tried various methods using RMySQL package and they all get the same RS-DBI driver warning: (unrecognized MySQL field type 7 in column 1 imported as character) error 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'")
What am I doing wrong?
source share