make_select | R Documentation |
Create a QuerySelectFields instance to select a set of fields. The table name and the list of fields are the only required parameters.
make_select(
tabl,
fields,
distinct = FALSE,
limit = NULL,
where = NULL,
join = NULL
)
tabl |
A table name. |
fields |
A character vector containing field names or a list of ExprField objects. |
distinct |
If set to TRUE, add the distinct keyword. |
limit |
Add a limit (integer value) to the number of records returned. |
where |
Set a StmtWhere instance to add a where clause. |
join |
Set a StmtJoin instance to add a join clause. |
A SelectQuery instance.
# Here is a simple SELECT query:
make_select("books", fields = c("title", "author"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.