Name
mysql_field_tell —
Synopsis
MYSQL_FIELD_OFFSET mysql_field_tell(MYSQL_RES *result)
Returns
the value of the current field position within the current row of the
result set. This value is used with
mysql_field_seek
.
Example
MYSQL_FIELD field1, field2, field3; /* results is a MYSQL_RES structure containing a result set */ /* Record my current position */ old_pos = mysql_field_tell(results); /* Fetch three more fields */ field1 = mysql_fetch_field(results); field2 = mysql_fetch_field(results); field3 = mysql_fetch_field(results); /* Go back to where you where */ mysql_field_seek(results, old_pos);
Get Managing & Using MySQL, 2nd Edition 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.