unsigned int mysql_errno(MYSQL *mysql)
        
Description
          For the connection specified by mysql,
          mysql_errno() returns the error code for
          the most recently invoked API function that can succeed or
          fail. A return value of zero means that no error occurred.
          Client error message numbers are listed in the MySQL
          errmsg.h header file. Server error
          message numbers are listed in
          mysqld_error.h. In the MySQL source
          distribution you can find a complete list of error messages
          and error numbers in the file
          Docs/mysqld_error.txt. The server error
          codes also are listed at Capítulo 26, Manejo de errores en MySQL.
        
          Note that some functions like
          mysql_fetch_row() don't set
          mysql_errno() if they succeed.
        
          A rule of thumb is that all functions that have to ask the
          server for information reset mysql_errno()
          if they succeed.
        
Return Values
          An error code value for the last
          mysql_
          call, if it failed. zero means no error occurred.
        xxx()
Errors
None.
É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.

