• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • mysqli_stmt::next_result()

    (PHP 5 >= 5.3.0, PHP 7)

    Reads the next result from a multiple query

    说明

    面向对象风格(method):

    publicmysqli_stmt::next_result(void): bool

    过程化风格:

    mysqli_stmt_next_result(mysql_stmt$stmt): bool

    Reads the next result from a multiple query.

    参数

    $stmt

    仅以过程化样式:由mysqli_stmt_init()返回的 statement 标识。

    返回值

    成功时返回TRUE,或者在失败时返回FALSE

    错误/异常

    Emits an E_STRICT level error if a result set does not exist, and suggests using mysqli_stmt::more_results() in these cases, before calling mysqli_stmt::next_result().

    仅 MySQL 原生驱动

    仅可用于mysqlnd。

    参见

    • mysqli_stmt::more_results() Check if there are more query results from a multiple query
    • mysqli::multi_query() 执行查询