MYSQL_FIELD *mysql_fetch_fields(MYSQL_RES
          *result)
        
Descrição
          Retorna um vetor de todas as estruturas
          MYSQL_FIELD no resultado. Cada estrutura
          fornece a definição do campo para uma coluna do resultado.
        
Valor Retornado
          Um vetor da estrutura MYSQL_FIELD para
          todas as colunas no resultado.
        
Erros
Nenhum.
Exemplo
unsigned int num_fields;
unsigned int i;
MYSQL_FIELD *fields;
num_fields = mysql_num_fields(result);
fields = mysql_fetch_fields(result);
for(i = 0; i < num_fields; i++)
{
   printf("Field %u is %s\n", i, fields[i].name);
}
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.

