msqlFetchField()
m_field * msqlFetchField ( result )
H
m_result * result ;
Along with the actual data rows, the server returns information about the data
fields selected. This information is made available to the calling program via
the msqlFetchField() function. Like msqlFetchRow(), this function returns one
element of information at a time and returns NULL when no further information
is available. The data is returned in a m_field structure which contains the
following information:
typedef struct {
char
* name ;
/* name of field */
char
* table ;
/* name of table */
int
type ;
/* data type of field */
int
length ,
/* length in bytes of field
*/
int
flags ;
/* attribute flags */
} m_field;
Possible values for the type field are defined in msql.h as
G
INT_TYPE, CHAR_TYPE and REAL_TYPE. The individual
attribute flags
can be accessed using the following macros:
msqlFieldSeek()
G
void msqlFieldSeek ( result , pos )
H
m_result * result ;
int pos ;
The result structure includes a "cursor" for the field data. It s
position can be moved using the
msqlFieldSeek() function. See msqlDataSeek() for further details.
msqlNumFields()
int msqlNumFields ( result )
H
<
New Page 1
Godaddy Web Hosting