Helper function for quoting sql elements.
If the quote character is present in the string, it will be doubled.
NA
s will be replaced with NULL.
sql_quote(x, quote)
x |
Character vector to escape. |
quote |
Single quoting character. |
sql_quote("abc", "'") sql_quote("I've had a good day", "'") sql_quote(c("abc", NA), "'")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.