unsigned int mysql_stmt_field_count(MYSQL_STMT *stmt)


Returns the number of columns for the most recent statement for the statement handler. This value is zero for statements such as INSERT or DELETE that do not produce result sets.

mysql_stmt_field_count() can be called after you have prepared a statement by invoking mysql_stmt_prepare().

Return Values

An unsigned integer representing the number of columns in a result set.



Download this Manual
User Comments
Sign Up Login You must be logged in to post a comment.