Learn R Programming

MonetDB.R (version 0.9.4)

mq: Connect to a database, run a single SELECT query, and disconnect again.

Description

mq(...) provides a short way to connect to a MonetDB database, run a single SELECT query, and disconnect again.

Usage

mq(dbname, query, ...)

Arguments

dbname
Database name
query
SQL SELECT query to run
...
Other options for dbConnect

Value

  • Returns a data frame that contains the result of the passed query or an error if something went wrong.

See Also

dbConnect mc

Examples

Run this code
mq("demo","SELECT 1")

Run the code above in your browser using DataLab