Description Usage Arguments Examples
This function extends dbGetQuery by setting the column names to lower case, and optionally returning the result as an indexed data.table. This is extremely useful for large queries.
1 | mydbGetQuery(conn, statement, data.table = TRUE, key = NULL, ...)
|
conn |
Connection object to database. See dbConnect |
statement |
Character string containing SQL statement. Do not end with a semicolon |
data.table |
Logical, return resulting object as a data.table. |
key |
Character string indicating which variable to use as the index. Ignored if data.table = FALSE. |
... |
expressions passed to dbSendQuery() |
1 | #mydbGetQuery(conn, "select * from all_tables", TRUE, "owner")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.