SQLite3Stmt::setExplain
PHP Manual
PHP Manual»SQLite3Stmt»SQLite3Stmt::setExplain

SQLite3Stmt::setExplain

(PHP 8 >= 8.5.0)

SQLite3Stmt::setExplain — Changes the explain mode of the statement

Descrizione

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

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.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Errori/Eccezioni

A ValueError is thrown if mode is not one of the SQLite3Stmt::EXPLAIN_MODE_* constants.

Vedere anche:

To Top