Description Usage Arguments Examples
Query the database
1 |
sql |
SQL query to run |
subs |
One row data frame whose column names are the substrings to replace, and whose values are the strings to replace them with. |
1 2 3 4 5 6 7 8 9 10 | sys.setenv(
'db_dsn' = 'mydb',
'db_username' = 'myuser',
'db_password' = 'password'
)
sql <- "select 1 as a from dual where 1 = XnumberX"
subs <- data.frame('XnumberX' = 1)
query(sql, subs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.