# maxdb_stmt_init

# maxdb::stmt_init

(PECL maxdb >= 1.0)

maxdb_stmt_init -- maxdb::stmt_init — Initializes a statement and returns an resource for use with maxdb_stmt_prepare

### 说明

过程化风格

maxdb_stmt_init ( resource `$link` ) : resource

面向对象风格

maxdb::stmt_init ( void ) : object

Allocates and initializes a statement resource suitable for maxdb_stmt_prepare().

> Note:

> Any subsequent calls to any maxdb_stmt function will fail until maxdb_stmt_prepare() was called.

### 返回值

Returns an resource.

### 参见

- maxdb_stmt_prepare() - Prepare an SQL statement for execution