| getNumRows {RMySQL} | R Documentation |
Get the number of rows or columns of a remote SQL table
getNumCols(con, name, ...) getNumRows(con, name, ...)
con |
a dbConnection object.
|
name |
a character string specifying the name of the table on the remote RDBMS |
... |
any additional arguments are passed to the implementing method. |
an integer specifying the number of rows or columns.
Depending on the driver, a new connection or a new cursor (result set) will be opened for communicating with the RDBMS. Therefore, drivers that allow only one connection or one result set need to verify that the connection specified as the first argument does not have any pending work.
getTable
assignTable
removeTable
existsTable
con <- dbConnect("Oracle", group = "opto")
getNumRows(con, "WAVELENGTH")
[1] 118336