Name
msqlStoreResult
Synopsis
m_result *msqlStoreResult()
Stores the result of a SELECT
query. This function
is called immediately after calling msqlQuery
with
an SQL SELECT
query. The results of the query are
then stored in the m_result
structure. Only after
this function has been called, can other queries be sent to the
database server. Every m_result
structure must be
freed using msqlFreeResult
when you are finished
with it.
Example
m_result *results; rows_returned = msqlQuery( dbh, "SELECT * FROM people" ); results = msqlStoreResult(); /* Other queries may now be submitted and the data from this query can be accessed through 'results' */
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.