PHP Conference Japan 2024

SQLite3::lastErrorCode

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

SQLite3::lastErrorCode 傳回最近一次失敗的 SQLite 請求的數字結果代碼

說明

public SQLite3::lastErrorCode(): int

傳回最近一次失敗的 SQLite 請求的數字結果代碼。

參數

此函式沒有參數。

傳回值

傳回一個整數值,表示最近一次失敗的 SQLite 請求的數字結果代碼。

新增筆記

使用者貢獻的筆記 2 則筆記

argon
6 年前
如果沒有發生錯誤 - `SQLite3::lastErrorCode()` 會回傳 `0`(整數零)
bohwaz
4 年前
錯誤代碼可以在這裡找到:https://sqlite.dev.org.tw/rescode.html
To Top