This API returns the number of database rows returned from the most recent fetch from the passed SELECT statement handle.
The API can also be called in the form of a method attached to a statement object as follows: stmt.rowCount().
- Statement handle returned from pjs.prepare() or pjs.allocStmt(). The statement handle must reference a SELECT statement that has been successfully executed using either pjs.execute() or pjs.executeDirect() and fetched from at least one time using pjs.fetch() or one of its variants. This parameter is omitted if the API is called as a statement method.
The number of rows returned. Zero is returned if the statement handle does not reference a SELECT statement, or if the statement has not been successfully executed and fetched from.
When using an IBM i database, this API requires the Profound.js Connector module.