sqlTableInsertIntoTemplate: Generated parameterised template for inserting rows.

Description Usage Arguments Examples

Description

Generated parameterised template for inserting rows.

Usage

1
2
sqlTableInsertIntoTemplate(con, table, values, row.names = NA, prefix = "?",
  ...)

Arguments

con

A database connection.

table

Name of the table. Escaped with dbQuoteIdentifier.

values

A data frame. Used only for the column names.

row.names

Either TRUE, FALSE, NA or a string.

If TRUE, always translate row names to a column called "row_names". If FALSE, never translate row names. If NA, translate rownames only if they're a character vector.

A string is equivalent to TRUE, but allows you to override the default name.

For backward compatibility, NULL is equivalent to FALSE.

prefix

Parameter prefix to put in front of column id.

...

Other arguments used by individual methods.

Examples

1
2
3
4

rstats-db/SQL documentation built on May 28, 2019, 3:35 a.m.