StmtValues | R Documentation |
VALUES statement.
VALUES statement.
This class represents a SQL VALUES statement, used when inserting multiple rows.
sqlq::Statement
-> StmtValues
new()
Initializer.
StmtValues$new(values)
values
An instance of ExprListValues
Nothing.
getTokens()
Generates the list of tokens representing this statement.
StmtValues$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
StmtValues$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create a VALUES statement with two rows:
row1 <- ExprListValues$new(list(ExprValue$new("abc"), ExprValue$new(123)))
row2 <- ExprListValues$new(list(ExprValue$new("def"), ExprValue$new(456)))
values <- StmtValues$new(list(row1, row2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.