# mysql\_num\_fields

## Syntax

```c
unsigned int mysql_num_fields(MYSQL_RES * );
```

* `MYSQL RES *` - A result set identifier returned by [mysql\_store\_result()](mysql_store_result) or [mysql\_use\_result()](mysql_use_result).

## Description

Returns number of fields in a specified result set.

## See also

* [mysql\_fetch\_field()](mysql_fetch_field)

{% @marketo/form formId="4316" %}
