MySQLi_STMT类

(PHP 5, PHP 7, PHP 8)

简介

代表一个预编译 SQL 语句。

类摘要

class mysqli_stmt {
/* 属性 */
int|string $affected_rows;
int $errno;
string $error;
string $sqlstate;
/* 方法 */
mysqli_stmt_affected_rows(mysqli_stmt $statement): int|string
public attr_get(int $attribute): int
public attr_set(int $attribute, int $value): bool
public bind_param(string $types, mixed &$var, mixed &...$vars): bool
public bind_result(mixed &$var, mixed &...$vars): bool
public close(): bool
public data_seek(int $offset): void
mysqli_stmt_errno(mysqli_stmt $statement): int
mysqli_stmt_error_list(mysqli_stmt $statement): array
mysqli_stmt_error(mysqli_stmt $statement): string
public execute(?array $params = null): bool
public fetch(): ?bool
mysqli_stmt_field_count(mysqli_stmt $statement): int
public free_result(): void
public get_result(): mysqli_result|false
mysqli_stmt_insert_id(mysqli_stmt $statement): int|string
public more_results(): bool
public next_result(): bool
public num_rows(): int|string
mysqli_stmt_param_count(mysqli_stmt $statement): int
public prepare(string $query): bool
public reset(): bool
public send_long_data(int $param_num, string $data): bool
mysqli_stmt_sqlstate(mysqli_stmt $statement): string
public store_result(): bool
}

目录