# Identifies a table in a specific schema:
Id("dbo", "Customer")
# You can name the components if you want, but it's not needed
Id(table = "Customer", schema = "dbo")
# Create a SQL expression for an identifier:
dbQuoteIdentifier(ANSI(), Id("nycflights13", "flights"))
# Write a table in a specific schema:
if (FALSE) {
dbWriteTable(con, Id("myschema", "mytable"), data.frame(a = 1))
}
Run the code above in your browser using DataLab