Description Usage Arguments Details Value See Also Examples
View source: R/sqlWriteTable.R
Writes, overwrite or appends a data frame to a database table. It calls dbWriteTable().
1 | sqlWriteTable(server_name, data, table, ...)
|
server_name |
character, name of the DB server from sqlServers list. |
data |
a data frame or coercible to data frame |
table |
character, name of the table to write in DB. |
bulk |
boolean, in order to excecute in bulk mode or not (bulk does not use autoincrementals, but is faster) |
... |
other parameters passed on to methods. |
It ends the connection inmediately after getting the results. sqlServers is a list built-in sqlGetConn().
returns booleans as it is specificated for dbWriteTable().
"sqlServerConn" and "setSqlServers()" documentation in toolkitEntel and "dbWriteTable()" from DBI for more details.
1 2 3 4 5 | sqlWriteTable("local",head(iris),"iris")
sqlWriteTable("local",head(mtcars),"MTCARS")
con=sqlGetConn("local")
dbReadTable(con,"iris")
dbReadTable(con,"MTCARS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.