INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_result_row_count()

The mi_result_row_count() function returns the number of rows affected by the current statement on the current connection.

Syntax

Usage

As an example, if an UPDATE statement modifies three rows, a call to mi_result_row_count() returns 3, or if a SELECT statement returns 531 rows, mi_result_row_count() returns 531.

The count is available only when MI_DML is returned by mi_get_result() and after the statement or command has completed.

Return Values

On success, returns the number of rows affected; on failure, returns MI_ERROR.

Related Topics

For additional information, see the descriptions of the following functions: mi_get_result() and mi_result_command_name().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.