PHP Velho Oeste 2024

SQLite3Result::reset

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

SQLite3Result::reset結果セットを最初の行に戻す

説明

public SQLite3Result::reset(): bool

結果セットを最初の行に戻します。

パラメータ

この関数にはパラメータはありません。

戻り値

結果セットを最初の行に戻すことに成功した場合に true、 失敗した場合に false を返します。

add a note add a note

User Contributed Notes 1 note

up
-1
aj at saunderselectric dot com
6 years ago
I found some odd behavior with this function that isn't mentioned anywhere in the documentation.

If you perform an "INSERT" using SQLite3::query(), it will return an SQLite3Result object. If you then call reset() on this object, it will repeat the INSERT query, creating a duplicate entry in the database.
To Top