StmtLimit | R Documentation |
LIMIT statement.
LIMIT statement.
This class represents a SQL LIMIT statement. It requires a single integer limit value.
sqlq::Statement
-> StmtLimit
new()
Initializer
StmtLimit$new(limit)
limit
The integer limit.
Nothing.
getTokens()
Generates the list of tokens representing this statement.
StmtLimit$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
StmtLimit$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create a LIMIT statement with a limit of 10:
limit <- StmtLimit$new(10L)
# Use the created LIMIT statement inside a SELECT query:
query <- QuerySelect$new(StmtSelectAll$new(),
from = StmtFrom$new("books"))
query$add(limit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.