SQLite3Stmt::setExplain

(PHP 8 >= 8.5.0)

SQLite3Stmt::setExplain — ステートメントの explain モードを変更する

説明

public function SQLite3Stmt::setExplain(int $mode): bool

ステートメントの explain モードを変更します。 これにより、そのステートメントは SQL の先頭に EXPLAIN や EXPLAIN QUERY PLAN を付けた場合と同じように振る舞うようになります。 また、通常のステートメントに戻すこともできます。

戻り値

成功した場合に true を、失敗した場合に false を返します。

エラー / 例外

mode が SQLite3Stmt::EXPLAIN_MODE_* 定数のいずれでもない場合、ValueError がスローされます。

参考

+add a note

User Contributed Notes

There are no user contributed notes for this page.