make_insert | R Documentation |
Create a QueryInsert instance.
make_insert(tabl, fields, values)
tabl |
A table name. |
fields |
A character vector containing field names. |
values |
A list of lists/vectors of values, each reprensenting a row to insert. |
An instance of QueryInsert.
# To generate a simple INSERT query:
values <- list(list('John Smith', 'Memories', 1999),
list('Barbara', 'My Life', 2010))
insert <- make_insert(tabl = 'books', fields = c('author', 'title', 'year'),
values = values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.