Learn R Programming

expDB (version 0.3.0)

getIdByUniqueIndex: Get index id by unique_columns.

Description

Get index id by unique_columns.

Usage

getIdByUniqueIndex(
  con,
  table,
  data,
  unique_col = "name",
  data_col = unique_col,
  ignore_case = FALSE
)

Value

id of unique_col

Arguments

con

a connection object as produced by dbConnect

table

the table name

data

A data frame to write into table

unique_col

A character vector to identify each row in the table

data_col

The column names in the data.frame

ignore_case

Whether ignore_case