dbGetTableNrowGoAhead WebServer APIGoAhead EMF

Synopsis

Get the number of rows in the table.

Prototype

 #include "emfdb.h"

 int dbGetTableNrow(int did, char_t *table);

Parameters

diddatabase Identifier
tablename of the table

Description

The number of usable rows in the table may be less than the actual number of rows in the table, since only the contents of deleted rows are deleted by dbDeleteRow, not the row itself.

Return Value

dbGetTableNrow returns the number of rows in the table if successful, or -1 on error.

Example

numRows = dbGetTableNrow(0, T("USERS"));

See Also

dbSetTableNRow(), dbDeleteRow()