Skip to content

mysql_errno

imshooter edited this page Dec 1, 2026 · 2 revisions

The error of the last query of a handle given to the script, or of its connection.

Inside the public of a query with ERROR_CALLBACK, it is the error of that query.

native mysql_errno(MySQL:handle = MYSQL_DEFAULT_HANDLE);

With open.mp names, from the same include:

native MySQL_GetErrorNumber(MySQL:handle = MYSQL_DEFAULT_HANDLE);

Parameters

Parameter Description
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • The error number of MySQL.
  • 0 when there was no error.
  • -1 when the handle does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally