DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dbNumberRows(3dba)


dbNumberRows -- get the number of inserted or deleted records

Synopsis

cc [flag ...] file ... -kthread -leels [library] ...
#include <eelsdba.h>

int dbNumberRows(DBresult *result);

Description

dbNumberRows returns the number of records either inserted or deleted from a database using dbQuery(3dba).


NOTE: This function does not return the number of records returned from an SQL select using dbQuery.

Arguments


result
(Input) A pointer to a DBresult structure returned from a previous call to dbQuery(3dba).

Return values

If successful, dbNumberRows returns the number of records returned by the previous query. Otherwise, it returns -1.

Diagnostics

An application can call dbGetError(3dba) to obtain the error message returned from the database.

References

dbGetError(3dba), dbQuery(3dba), Intro(3dba)


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004