Description Usage Arguments Value Examples
Runs a SQL Select query
1 2 | sql_select(tbl, cols = "*", where = -1, orderby = -1, orderType = "ASC",
groupBy = -1, having = -1)
|
tbl |
- the table to run the query on |
cols |
- a vector of the column names you'd like to select, default is all of them |
where |
- a single string with the where conditions for the query |
orderby |
- a vector of the column names you'd like to order by in the query |
orderType |
- the type of ordering (ASC | DESC), DESC is default |
groupBy |
-a vector of the column names you'd like to group by in the query |
having |
-a single string with the having conditions for the query |
a dataframe with the results of the query
1 2 | sql_select(table)
sqL_select(table, c("col1", "col2"), "col1>10 AND col2<10")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.