Description Usage Arguments Value
View source: R/database_functions.R
To insert new values inside the MySQL table
1 2 3 4 5 6 7 8 | insert_into_db(
table_name,
values,
db_name = default_db_name,
host_name = default_host_name,
host_password = default_host_password,
host_ip = default_host_ip
)
|
table_name |
A string which contains the MySQL table name where the data has to be inserted |
values |
A tbl_df/tbl/data.frame which is the same structure as the MySQL table |
db_name |
A string which contains the name of the database |
host_name |
A string which contains the username to access the database |
host_password |
A string which contains the password to access the database |
host_ip |
A string which contains the host address of the database |
Returns the result obtained after the insert, NULL if the data was inserted successfully
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.