insert | R Documentation |
INSERT
queryExecute INSERT
query
insert(conn, ...) ## S3 method for class 'MariaDBConnection' insert(conn, ..., quiet = FALSE)
conn |
DB connection object. |
... |
|
quiet |
Boolean flag to hide status messages. |
Other DB functions:
close_conn()
,
delete()
,
list_tables()
,
open_conn_mysql()
,
select_all()
,
select()
,
update()
## Not run: conn <- open_conn_mysql("sys", "root") query <- paste0( "INSERT INTO sys_config (variable, value, set_time, set_by) VALUES ", "('test_var', 999, '", Sys.time(), "', NULL)" ) out <- insert(conn, query) close_conn(conn) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.