Standard MYSQL_RES result set from prepared statement
Posted by: Steve Teale
Date: October 04, 2011 04:54AM

I would like to be able to execute a prepared statement like

select col1, col2 from sometable where col3=? and col4=?

without binding variables for the output.

If you do a mysql_stmt_store_result(), then looking at the MYSQL_STMT stuff it seems like all the information should be there. But I'm not having any success getting it - mysteries of MYSQL_ROWS and the detailed structure of what char** MYSQL_ROW points to.

Has anyone tried this with success?

Options: ReplyQuote


Subject
Views
Written By
Posted
Standard MYSQL_RES result set from prepared statement
1063
October 04, 2011 04:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.