Description Usage Arguments Details Value Note Author(s) See Also Examples
Execute arbitrary SQL statements against the MonetDB database
1 | RMonetExecute(con, sql, autocommit=TRUE, lastid=FALSE, try=FALSE)
|
con |
an Open MonetDB Connection handle |
sql |
SQL query to call |
autocommit |
optional - set autocommit for the statement to true |
lastid |
optional - return the record ID of the record affected - useful for INSERT |
try |
optional - try executing the statement - return FALSE on failure - TRUE for success |
con <- RMonetConnect("db.yml") res = RMonetExecute(con, "SELECT * FROM voc.craftsmen LIMIT 3") print(res) checkTrue(as.numeric(res) == 3) RMonetClose(con)
RMonetExecute executes and returns the count of records affected
nothing.
Piers Harding
RMonet
, RMonetConnect
, RMonetGetInfo
, RMonetQuery
, RMonetLoadDataFrame
, RMonetExecute
, RMonetClose
, RMonetStartTransaction
, RMonetCommit
, RMonetIsConnected
, RMonetQuote
, RMonetUnQuote
, RMonetExists
, RMonetListTables
, RMonetListFields
1 2 3 4 5 | ## Not run:
# Execute the query
RMonetExecute(con, "SELECT * FROM voc.craftsmen LIMIT 3")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.