tableQuote function

Quote Table Name

Quote Table Name

Add special quotes around table name.

tableQuote(sqtable)

Arguments

  • sqtable: table name, with or without schema name.

Returns

String with special quotes.

Note

The sqlQuery function requires special quotes if the table name has spaces. Furthermore, the schema name must not be inside the special quotes.

Examples

tableQuote("table") tableQuote("table name") tableQuote("schema.table") tableQuote("schema.table name")

See Also

sqlQuery requires special quotes if the table name has spaces.

Quotes in base R.

MSSQL-package gives an overview of the package.