dbEscapeStrings {RMySQL} | R Documentation |
is expected to be sorted by the grouping field.
dbEscapeStrings(con, strings, ...)
con |
a connection object (see dbConnect ). |
strings |
a character vector. |
... |
any additional arguments to be passed to the dispatched method. |
dbEscapeStrings
Currently, only the MySQL
driver implements this method.
A character vector with SQL special characters properly escaped.
## Not run: tmp <- sprintf("select * from emp where lname = %s", "O'Reilly") sql <- dbEscapeString(con, tmp) dbGetQuery(con, sql) ## End(Not run)