my_bool mysql_stmt_close(MYSQL_STMT *)
        
Description
          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.
This function was added in MySQL 4.1.0.
Return Values
Zero if the statement was freed successfully. Non-zero if an error occurred.
Errors
              CR_SERVER_GONE_ERROR
            
The MySQL server has gone away.
              CR_UNKNOWN_ERROR
            
An unknown error occurred.
Example
          For the usage of mysql_stmt_close(), refer
          to the Example from Sección 24.2.7.10, “mysql_stmt_execute()”.
        
Ésta es una traducción del manual de referencia de MySQL, que puede encontrarse en dev.mysql.com. El manual de referencia original de MySQL está escrito en inglés, y esta traducción no necesariamente está tan actualizada como la versión original. Para cualquier sugerencia sobre la traducción y para señalar errores de cualquier tipo, no dude en dirigirse a mysql-es@vespito.com.

