Name
msqlFieldSeek
Synopsis
void msqlFieldSeek ( m_result *result , int pos )
Sets the cursor that tells msqlFetchField
which
field to fetch next. Setting a position of
will move the cursor to the beginning of the fields. Setting the
cursor to a position past the last field places the cursor just past
the last field.
Example
m_result *results; m_field *field; rows_returned = msqlQuery( dbh, "SELECT * FROM people" ); results = msqlStoreResult(); field = msqlFetchField(results); /* Now go back to the beginning */ msqlFieldSeek(results, 0);
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.