Insert new rows or update existing rows to a specific table according to a specific column (unique) by each row
1 | dbInsertUpdateByRow(con, table, data, unique_col = "name")
|
con |
A connection object as produced by dbConnect |
table |
The target table name |
data |
A data frame to write into table |
unique_col |
A character vector to indentify each row in the table |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.