sqlTableInsertInto: Insert rows into a table.

Description Usage Arguments Examples

Description

Insert rows into a table.

Usage

1
2
3
4
5
sqlTableInsertInto(con, table, values, row.names = NA, ...)

## S4 method for signature 'DBIConnection'
sqlTableInsertInto(con, table, values,
  row.names = NA, ...)

Arguments

con

A database connection.

table

Name of the table. Escaped with dbQuoteIdentifier.

values

A data frame. Factors will be converted to character vectors. Character vectors will be escaped with dbQuoteString.

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.

...

Other arguments used by individual methods.

Examples

1
2
3
4

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