dbSendQuery-methods {RMySQL} | R Documentation

## Execute a statement on a given database connection

### Description

These methods are straight-forward implementations of the corresponding generic functions.

### Methods

conn
  an `MySQLConnection` object.
statement
  a character vector of length 1 with the SQL statement.
res
  an `MySQLResult` object.
...
  additional parameters.

### References

See the Database Interface definition document `DBI.pdf` in the base directory of this package or http://stat.bell-labs.com/RS-DBI.

### See Also

`MySQL`, `dbDriver`, `dbConnect`, `fetch`, `dbCommit`, `dbGetInfo`, `dbReadTable`.

### Examples

    ## Not run:
    drv <- dbDriver("MySQL")
    con <- dbConnect(drv, "usr", "password", "dbname")
    res <- dbSendQuery(con, "SELECT * from liv25")
    data <- fetch(res, n = -1)
    ## End(Not run)

[Package RMySQL version 0.6-0 Index]