downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

sqlite_last_insert_rowid> <sqlite_key
[edit] Last updated: Fri, 10 Feb 2012

view this page in

sqlite_last_error

SQLiteDatabase::lastError

(PHP 5, PECL sqlite >= 1.0.0)

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

説明

int sqlite_last_error ( resource $dbhandle )

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

int SQLiteDatabase::lastError ( void )

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

パラメータ

dbhandle

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

返り値

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

参考



add a note add a note User Contributed Notes sqlite_last_error
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites