StmtSelectAll | R Documentation |
SELECT * statement.
SELECT * statement.
This class represents a SQL SELECT * statement. It can be used to select
all fields from a table, with optional distinct
keyword to remove duplicate
results.
sqlq::Statement
-> sqlq::StmtSelect
-> StmtSelectAll
new()
Initializer
StmtSelectAll$new(distinct = FALSE)
distinct
Set to TRUE enable distinct
keyword and remove
duplicate results.
Nothing.
getTokens()
Generates the list of tokens representing this statement.
StmtSelectAll$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
StmtSelectAll$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create a SELECT * statement:
select_all <- StmtSelectAll$new()
# Use the created SELECT * statement inside a SELECT query:
query <- QuerySelect$new(select = select_all,
from = StmtFrom$new("books"))
# Create a SELECT DISTINCT * statement:
select_distinct_all <- StmtSelectAll$new(distinct = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.