Originally Posted by astrogeek
I think the reference you need is here
, you can select your version of the manual from the left sidebar.
I think that the API function you are looking for is actually mysql_stmt_fetch()
. Can you say why that does not work for you?
thanks for your reply, and mysql_stmt_fetch() can work perfectly.
My origin code is as followed:
int SelectTableRecord(char *szSql, MYSQL_RES *res)
// szSql is SQL such as "select * from table"
In this API, mysql_read_query()/mysql_store_result() is executed, the result set is pointed by input parameter 'res'.
Now I want to change the way that get the result set by using mysql_stmt_execute() instead of mysql_read_query(), without changing the API's parameters.
It means I have to change the result set from struct MYSQL_STMT to struct MYSQL_RES, maybe it's a stupid idea...