SQLite3::lastErrorCode

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

SQLite3::lastErrorCode — Devuelve el cĂłdigo de error de la Ășltima consulta SQL que ha fallado

DescripciĂłn

public function SQLite3::lastErrorCode(): int

Devuelve el cĂłdigo de error de la Ășltima consulta SQL que ha fallado.

ParĂĄmetros

Esta funciĂłn no contiene ningĂșn parĂĄmetro.

Valores devueltos

Devuelve un entero que representa el cĂłdigo de error de la Ășltima consulta que ha fallado.

Véase también

add a note

User Contributed Notes 2 notes

up
4
bohwaz ¶
5 years ago
Codes can be found here: https://sqlite.org/rescode.html
up
3
argon ¶
8 years ago
If no error occurred - `SQLite3::lastErrorCode()` returns `0` (int zero)