PHP Velho Oeste 2024

sqlite_last_error

SQLiteDatabase::lastError

(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)

sqlite_last_error -- SQLiteDatabase::lastErrorデータベースに関する直近のエラーコードを返す

説明

public sqlite_last_error ( resource $dbhandle ) : int

オブジェクト指向型 (メソッド):

SQLiteDatabase::lastError ( void ) : int

dbhandle (データベースハンドル)、 上で実行された直近の処理のエラーコード、 あるいはエラーが発生しなかった場合に 0 を返します。人が読み取れるエラーコードの詳細は、 sqlite_error_string() で取得可能です。

パラメータ

dbhandle

SQLite データベースリソース。手続きに従って、 sqlite_open() から返されます。 このパラメータは、 オブジェクト指向言語型メソッドを使用する場合は不要です。

返り値

エラーコード、あるいはエラーが発生していない場合に 0 を返します。

参考

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top