powered by
dbEscapeStrings(con, strings, ...)
dbConnect
dbEscapeStrings
Currently, only the MySQL driver implements this method.
MySQL
dbSendQuery
fetch
tmp <- sprintf("select * from emp where lname = %s", "O'Reilly") sql <- dbEscapeString(con, tmp) dbGetQuery(con, sql)
Run the code above in your browser using DataLab