mysql_stmt_error — Returns a string description for last statement error
const char * mysql_stmt_error(MYSQL_STMT * stmt);
Returns a containing the error message for the most recently invoked statement function that can succeed or fail.
Parameters
stmt
A statement handle, which was previously allocated by mysql_stmt_init()
.
Return value
A string that describes the error. An empty string if no error occurred.
| |
---|
Client error messages are listed in errmsg.h header file, server error messages are listed in mysqld_error.h header file of the server source distribution. |
See also
mysql_stmt_errno()
, mysql_stmt_sqlstate()