php8.5
Home/ Manual/ sqlite3 / sqlite3/ SQLite3::lastErrorCode

SQLite3::lastErrorCode

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Returns the numeric result code of the most recent failed SQLite request

Description

SQLite3::lastErrorCode(): int

Returns the numeric result code of the most recent failed SQLite request.

Parameters Parameters

Return Values

Returns an integer value representing the numeric result code of the most recent failed SQLite request.

See Also

  • SQLite3::lastExtendedErrorCode
  • SQLite3::enableExtendedResultCodes
  • SQLite3::lastErrorMsg

Source: reference/sqlite3/sqlite3/lasterrorcode.xml · from the official PHP manual (php/doc-en)