Name

mysql_errno

Synopsis

unsigned int mysql_errno(MYSQL *mysql) 

Returns the error number of the last error associated with the current connection. If there have been no errors in the connection, the function returns zero.

Example

error = mysql_errno(&mysql);
printf("The last error was number %d\n", error);

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.