Skip to contents

Insert a table into the database

Usage

insert_table_sql(
  conn,
  db_table_name,
  table,
  batch_size = NULL,
  check_db_table = TRUE
)

Arguments

conn

An established database connection

db_table_name

Name of a table in the database

table

A table in the database

batch_size

Optional number of rows per INSERT statement. Default NULL, which inserts the whole table in one statement.

check_db_table

whether to check database table. Default = TRUE.