Executes a prepared statement and returns a result set object

# SQLite3Stmt::execute

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

SQLite3Stmt::execute — Executes a prepared statement and returns a result set object

### 说明

public function SQLite3Stmt::execute(): SQLite3Result|false

Executes a prepared statement and returns a result set object.

警告

Result set objects retrieved by calling this method on the same statement object are not independent, but rather share the same underlying structure. Therefore it is recommended to call SQLite3Result::finalize(), before calling SQLite3Stmt::execute() on the same statement object again.

### 参数

此函数没有参数。

### 返回值

Returns an SQLite3Result object on successful execution of the prepared statement, `false` on failure.

### 参见

- SQLite3::prepare() - Prepares an SQL statement for execution
- SQLite3Stmt::bindValue() - Binds the value of a parameter to a statement variable
- SQLite3Stmt::bindParam() - Binds a parameter to a statement variable

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open