StmtInsert | R Documentation |
INSERT INTO statement.
INSERT INTO statement.
sqlq::Statement
-> StmtInsert
new()
Initializer.
StmtInsert$new(tabl, fields)
tabl
A table name.
fields
An instance of ExprListFields
Nothing.
getTokens()
Generates the list of tokens representing this statement.
StmtInsert$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
StmtInsert$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Simple INSERT statement:
fields <- c('author', 'title', 'year')
insert <- StmtInsert$new(tabl = 'books', fields = make_fields(fields))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.