mi_integer mi_result_row_count(conn)
MI_CONNECTION *conn;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
Yes | Yes |
The mi_result_row_count( ) function returns the number of rows that the current statement on the connection that conn references has affected. The current statement is the most recently executed SQL statement sent to the database server on that connection. For example, if an UPDATE statement modifies three rows, a call to mi_result_row_count( ) returns 3. If a SELECT statement returns 531 rows, mi_result_row_count( ) returns 531.
See also the descriptions of mi_get_result( ) and mi_result_command_name( ).