SQLite3Stmt::setExplain
(PHP 8 >= 8.5.0)
SQLite3Stmt::setExplain — Changes the explain mode of the statement
Description
Changes the explain mode of the statement, so that it behaves as if its SQL
was prefixed with EXPLAIN or
EXPLAIN QUERY PLAN, or as an ordinary statement again.
Parameters
mode
One of SQLite3Stmt::EXPLAIN_MODE_PREPARED,
SQLite3Stmt::EXPLAIN_MODE_EXPLAIN, or
SQLite3Stmt::EXPLAIN_MODE_EXPLAIN_QUERY_PLAN.
Errors/Exceptions
A ValueError is thrown if mode
is not one of the SQLite3Stmt::EXPLAIN_MODE_* constants.
See Also
- SQLite3Stmt::explain() - Returns the explain mode of the statement
- SQLite3Stmt::execute() - Executes a prepared statement and returns a result set object
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
