mysql_errno
mysql_errno returns the numeric error code from the most recent MariaDB Connector/C function call, or zero if no error occurred.
Syntax
unsigned int mysql_errno(MYSQL * mysql);Parameter
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Returns the last error code for the most recent function call that can succeed or fail. Zero means no error occurred.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

