Documentation Home
MySQL 5.5 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual mysql_stmt_close()

my_bool mysql_stmt_close(MYSQL_STMT *)


Closes the prepared statement. mysql_stmt_close() also deallocates the statement handle pointed to by stmt.

If the current statement has pending or unread results, this function cancels them so that the next query can be executed.

Return Values

Zero for success. Nonzero if an error occurred.


See the Example in Section, “mysql_stmt_execute()”.

Download this Manual
User Comments
Sign Up Login You must be logged in to post a comment.