mi_integer mi_parameter_count(stmt_desc)
MI_STATEMENT *stmt_desc;
The mi_parameter_count( ) function obtains the number of input parameters in the statement descriptor that stmt_desc references. A statement descriptor describes a prepared statement. You can use the mi_parameter_count( ) function with the DataBlade API functions that obtain information about each input parameter of the prepared statement (such as mi_parameter_type_id( ) and mi_parameter_nullable( )).
Parameter information is available only for the INSERT and UPDATE statements. Support for the UPDATE statement includes the following forms of UPDATE:
If you attempt to request parameter information for other SQL statements, mi_parameter_count( ) raises an exception.