<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mysqli.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'mysqli.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.mysqli.php',
    1 => 'MySQLi',
  ),
  'prev' => 
  array (
    0 => 'mysqli.persistconns.php',
    1 => 'mysqli 扩展和持久化连接',
  ),
  'next' => 
  array (
    0 => 'mysqli.notes.php',
    1 => 'Notes',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/mysqli/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
  <dl>
   
    <dt id="constant.mysqli-read-default-group">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-read-default-group">MYSQLI_READ_DEFAULT_GROUP</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      从 <var class="filename">my.cnf</var> 或由 <strong><code><a href="mysqli.constants.php#constant.mysqli-read-default-file">MYSQLI_READ_DEFAULT_FILE</a></code></strong> 指定的文件中读取命名区块（named group）的配置。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-read-default-file">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-read-default-file">MYSQLI_READ_DEFAULT_FILE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      从指定的选项文件中读取配置，而非从默认的 <var class="filename">my.cnf</var>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-can-handle-expired-passwords">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-can-handle-expired-passwords">MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      向服务器表明客户端可以为过期密码处理沙盒模式。可与
      <span class="function"><a href="mysqli.options.php" class="function">mysqli_options()</a></span> 一起使用。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-opt-load-data-local-dir">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-load-data-local-dir">MYSQLI_OPT_LOAD_DATA_LOCAL_DIR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      如果启用，此选项将指定在 <code class="literal">LOAD DATA LOCAL</code> 语句中允许客户端指定 <code class="literal">LOCAL</code> 数据加载的目录。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-opt-connect-timeout">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-connect-timeout">MYSQLI_OPT_CONNECT_TIMEOUT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      连接超时（秒）。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-read-timeout">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-read-timeout">MYSQLI_OPT_READ_TIMEOUT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Command execution result timeout in seconds. Available as of PHP 7.2.0.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-local-infile">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-local-infile">MYSQLI_OPT_LOCAL_INFILE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      启用命令 <code class="literal">LOAD LOCAL INFILE</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-int-and-float-native">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-int-and-float-native">MYSQLI_OPT_INT_AND_FLOAT_NATIVE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Convert integer and float columns back to PHP numbers. Only valid for mysqlnd.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-net-cmd-buffer-size">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-net-cmd-buffer-size">MYSQLI_OPT_NET_CMD_BUFFER_SIZE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      The size of the internal command/network buffer. Only valid for mysqlnd.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-net-read-buffer-size">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-net-read-buffer-size">MYSQLI_OPT_NET_READ_BUFFER_SIZE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Maximum read chunk size in bytes when reading the body of a MySQL command packet.
      Only valid for mysqlnd.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-opt-ssl-verify-server-cert">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-opt-ssl-verify-server-cert">MYSQLI_OPT_SSL_VERIFY_SERVER_CERT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-init-command">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-init-command">MYSQLI_INIT_COMMAND</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Command to execute when connecting to MySQL server. Will automatically be re-executed when reconnecting.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-can-handle-expired-passwords">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-can-handle-expired-passwords">MYSQLI_CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      向服务器表明客户端可以为过期密码处理沙盒模式。可与
      <span class="function"><a href="mysqli.real-connect.php" class="function">mysqli_real_connect()</a></span> 一起使用。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-client-found-rows">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-found-rows">MYSQLI_CLIENT_FOUND_ROWS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      返回匹配的行数，而不是受影响的行数。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-client-ssl-verify-server-cert">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-ssl-verify-server-cert">MYSQLI_CLIENT_SSL_VERIFY_SERVER_CERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      验证服务器证书。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-client-ssl">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-ssl">MYSQLI_CLIENT_SSL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Use SSL (encrypted protocol). This option should not be set by application programs;
      it is set internally in the MySQL client library.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-compress">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-compress">MYSQLI_CLIENT_COMPRESS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      使用压缩协议。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-interactive">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-interactive">MYSQLI_CLIENT_INTERACTIVE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Allow <code class="literal">interactive_timeout</code> seconds
      (instead of <code class="literal">wait_timeout</code> seconds) of inactivity before
      closing the connection.  The client&#039;s session
      <code class="literal">wait_timeout</code> variable will be set to
      the value of the session <code class="literal">interactive_timeout</code> variable.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-ignore-space">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-ignore-space">MYSQLI_CLIENT_IGNORE_SPACE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Allow spaces after function names. Makes all functions names reserved words.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-no-schema">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-no-schema">MYSQLI_CLIENT_NO_SCHEMA</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Don&#039;t allow the <code class="literal">db_name.tbl_name.col_name</code> syntax.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-multi-queries"><strong><code><a href="mysqli.constants.php#constant.mysqli-client-multi-queries">MYSQLI_CLIENT_MULTI_QUERIES</a></code></strong></dt>
    <dd>
     <p class="para">
      允许在单个 <span class="function"><a href="mysqli.query.php" class="function">mysqli_query()</a></span> 调用中进行多个以分号分隔的查询。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-store-result">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-store-result">MYSQLI_STORE_RESULT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      使用缓冲的结果集合。值为 <code class="literal">0</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-store-result-copy-data">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-store-result-copy-data">MYSQLI_STORE_RESULT_COPY_DATA</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      从 PHP 8.1 起，此常量不再有效。在 PHP 8.1 之前，此常量用于将结果从 <code class="literal">mysqlnd</code> 
      内部缓冲区复制到要获取的 PHP 变量中。默认情况下，<code class="literal">mysqlnd</code>
      将使用引用逻辑来避免复制和重复保存在内存中的结果。对于某些结果集（例如，包含许多小行的结果集），复制方法可以减少总体内存使用量，因为保存结果的
      PHP 变量可能会更早释放。仅适用于 <code class="literal">mysqlnd</code>。自 PHP 8.4.0 起弃用。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-use-result">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-use-result">MYSQLI_USE_RESULT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      使用无缓冲的结果集合。值为 <code class="literal">1</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-assoc">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-assoc">MYSQLI_ASSOC</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      列数据以字段名作为数组索引返回至数组中。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-num">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-num">MYSQLI_NUM</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Columns are returned into the array having an enumerated index.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-both">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-both">MYSQLI_BOTH</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      Columns are returned into the array having both a numerical index and the fieldname as the associative index.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-not-null-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-not-null-flag">MYSQLI_NOT_NULL_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      表示字段定义为 <code class="literal">NOT NULL</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-pri-key-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-pri-key-flag">MYSQLI_PRI_KEY_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段是主键索引的一部分。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-unique-key-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-unique-key-flag">MYSQLI_UNIQUE_KEY_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段是唯一索引的一部分。
     </p>
    </dd>
   

   
    <dt id="constant.mysqli-multiple-key-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-multiple-key-flag">MYSQLI_MULTIPLE_KEY_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段是普通索引的一部分。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-blob-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-blob-flag">MYSQLI_BLOB_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">BLOB</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-unsigned-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-unsigned-flag">MYSQLI_UNSIGNED_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">UNSIGNED</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-zerofill-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-zerofill-flag">MYSQLI_ZEROFILL_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">ZEROFILL</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-auto-increment-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-auto-increment-flag">MYSQLI_AUTO_INCREMENT_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">AUTO_INCREMENT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-timestamp-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-timestamp-flag">MYSQLI_TIMESTAMP_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TIMESTAMP</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-set-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-set-flag">MYSQLI_SET_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">SET</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-num-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-num-flag">MYSQLI_NUM_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">NUMERIC</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-part-key-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-part-key-flag">MYSQLI_PART_KEY_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段是多列索引的一部分。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-group-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-group-flag">MYSQLI_GROUP_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段是 <code class="literal">GROUP BY</code> 的一部分。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-no-default-value-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-no-default-value-flag">MYSQLI_NO_DEFAULT_VALUE_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      列的定义中没有 <code class="literal">DEFAULT</code> 子句。这不适用于 <code class="literal">NULL</code> 或
      <code class="literal">AUTO_INCREMENT</code> 列，因为这些列的默认值有 <code class="literal">NULL</code> 默认值和隐式默认值。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-type-decimal">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-decimal">MYSQLI_TYPE_DECIMAL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DECIMAL</code>.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-newdecimal">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-newdecimal">MYSQLI_TYPE_NEWDECIMAL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      精度数学 <code class="literal">DECIMAL</code> 或 <code class="literal">NUMERIC</code> 字段。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-bit">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-bit">MYSQLI_TYPE_BIT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">BIT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-tiny">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-tiny">MYSQLI_TYPE_TINY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TINYINT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-short">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-short">MYSQLI_TYPE_SHORT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">SMALLINT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-long">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-long">MYSQLI_TYPE_LONG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">INT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-float">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-float">MYSQLI_TYPE_FLOAT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">FLOAT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-double">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-double">MYSQLI_TYPE_DOUBLE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DOUBLE</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-null">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-null">MYSQLI_TYPE_NULL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DEFAULT NULL</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-timestamp">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-timestamp">MYSQLI_TYPE_TIMESTAMP</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TIMESTAMP</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-longlong">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-longlong">MYSQLI_TYPE_LONGLONG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">BIGINT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-int24">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-int24">MYSQLI_TYPE_INT24</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">MEDIUMINT</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-date">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-date">MYSQLI_TYPE_DATE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DATE</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-time">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-time">MYSQLI_TYPE_TIME</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TIME</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-datetime">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-datetime">MYSQLI_TYPE_DATETIME</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DATETIME</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-year">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-year">MYSQLI_TYPE_YEAR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">YEAR</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-newdate">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-newdate">MYSQLI_TYPE_NEWDATE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">DATE</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-interval">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-interval">MYSQLI_TYPE_INTERVAL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      <strong><code><a href="mysqli.constants.php#constant.mysqli-type-enum">MYSQLI_TYPE_ENUM</a></code></strong> 的别名。自 PHP 8.4.0 起移除。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-enum">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-enum">MYSQLI_TYPE_ENUM</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">ENUM</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-set">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-set">MYSQLI_TYPE_SET</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">SET</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-tiny-blob">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-tiny-blob">MYSQLI_TYPE_TINY_BLOB</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TINYBLOB</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-medium-blob">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-medium-blob">MYSQLI_TYPE_MEDIUM_BLOB</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">MEDIUMBLOB</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-long-blob">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-long-blob">MYSQLI_TYPE_LONG_BLOB</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">LONGBLOB</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-blob">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-blob">MYSQLI_TYPE_BLOB</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">BLOB</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-var-string">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-var-string">MYSQLI_TYPE_VAR_STRING</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">VARCHAR</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-string">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-string">MYSQLI_TYPE_STRING</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">CHAR</code> 或 <code class="literal">BINARY</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-char">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-char">MYSQLI_TYPE_CHAR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">TINYINT</code>。对于 <code class="literal">CHAR</code>，参阅 <code class="literal">MYSQLI_TYPE_STRING</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-geometry">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-geometry">MYSQLI_TYPE_GEOMETRY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">GEOMETRY</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-json">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-json">MYSQLI_TYPE_JSON</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">JSON</code>。仅对 mysqlnd 和
      MySQL 5.7.8 及更高版本有效。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-type-vector">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-type-vector">MYSQLI_TYPE_VECTOR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      定义该字段为 <code class="literal">VECTOR</code> 类型。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-need-data">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-need-data">MYSQLI_NEED_DATA</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      More data available for bind variable.
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-enum-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-enum-flag">MYSQLI_ENUM_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">ENUM</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-binary-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-binary-flag">MYSQLI_BINARY_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      字段定义为 <code class="literal">BINARY</code>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-cursor-type-for-update">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-cursor-type-for-update">MYSQLI_CURSOR_TYPE_FOR_UPDATE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      自 PHP 8.4.0 起移除。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-cursor-type-no-cursor">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-cursor-type-no-cursor">MYSQLI_CURSOR_TYPE_NO_CURSOR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-cursor-type-read-only">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-cursor-type-read-only">MYSQLI_CURSOR_TYPE_READ_ONLY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-cursor-type-scrollable">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-cursor-type-scrollable">MYSQLI_CURSOR_TYPE_SCROLLABLE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      自 PHP 8.4.0 起移除。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-stmt-attr-cursor-type">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-stmt-attr-cursor-type">MYSQLI_STMT_ATTR_CURSOR_TYPE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-stmt-attr-prefetch-rows">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-stmt-attr-prefetch-rows">MYSQLI_STMT_ATTR_PREFETCH_ROWS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      自 PHP 8.4.0 起移除。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-stmt-attr-update-max-length">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-stmt-attr-update-max-length">MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-set-charset-name">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-set-charset-name">MYSQLI_SET_CHARSET_NAME</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-report-index">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-report-index">MYSQLI_REPORT_INDEX</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      如果在查询中没有使用索引或使用了坏索引，则会报告。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-report-error">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-report-error">MYSQLI_REPORT_ERROR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      报告来自 mysqli 函数调用的错误。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-report-strict">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-report-strict">MYSQLI_REPORT_STRICT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      抛出 <code class="literal">mysqli_sql_exception</code> 错误而不是警告。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-report-all">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-report-all">MYSQLI_REPORT_ALL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      启用所有选项（报告所有）。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-report-off">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-report-off">MYSQLI_REPORT_OFF</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      关闭报告功能。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-debug-trace-enabled">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-debug-trace-enabled">MYSQLI_DEBUG_TRACE_ENABLED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      如果 <span class="function"><a href="mysqli.debug.php" class="function">mysqli_debug()</a></span> 功能启用，设置为 1。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-server-public-key">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-server-public-key">MYSQLI_SERVER_PUBLIC_KEY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-grant">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-grant">MYSQLI_REFRESH_GRANT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      刷新授权表。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-log">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-log">MYSQLI_REFRESH_LOG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      刷新日志，就像执行 <code class="literal">FLUSH LOGS</code> <abbr>SQL</abbr> 语句。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-tables">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-tables">MYSQLI_REFRESH_TABLES</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      刷新表缓存，就像执行 <code class="literal">FLUSH TABLES</code> <abbr>SQL</abbr> 语句。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-hosts">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-hosts">MYSQLI_REFRESH_HOSTS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      刷新主机缓存，就像执行刷新 <code class="literal">FLUSH HOSTS</code> <abbr>SQL</abbr> 语句一样。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-replica">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-replica">MYSQLI_REFRESH_REPLICA</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-slave">MYSQLI_REFRESH_SLAVE</a></code></strong> 常量的别名。自 PHP 8.1.0 起可用。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-status">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-status">MYSQLI_REFRESH_STATUS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      重置状态变量，如执行 <code class="literal">FLUSH STATUS</code> <abbr>SQL</abbr> 语句。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-threads">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-threads">MYSQLI_REFRESH_THREADS</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      刷新线程缓存。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-slave">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-slave">MYSQLI_REFRESH_SLAVE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      在从复制服务器上：重置主服务器信息，并重新启动从服务器。就像执行
      <code class="literal">RESET SLAVE</code> <abbr>SQL</abbr> 语句一样。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-master">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-master">MYSQLI_REFRESH_MASTER</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      在主复制服务器上：删除二进制日志索引中列出的二进制日志文件，并截断索引文件。就像执行
      <code class="literal">RESET MASTER</code> <abbr>SQL</abbr> 语句一样。自 PHP 8.4.0 起弃用。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-refresh-backup-log">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-refresh-backup-log">MYSQLI_REFRESH_BACKUP_LOG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      关闭并重新打开备份日志文件。自 PHP 8.4.0 起弃用。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-trans-cor-and-chain">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-cor-and-chain">MYSQLI_TRANS_COR_AND_CHAIN</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      追加“AND CHAIN”到 <span class="function"><a href="mysqli.commit.php" class="function">mysqli_commit()</a></span> 或 <span class="function"><a href="mysqli.rollback.php" class="function">mysqli_rollback()</a></span>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-cor-and-no-chain">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-cor-and-no-chain">MYSQLI_TRANS_COR_AND_NO_CHAIN</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      追加“AND NO CHAIN”到 <span class="function"><a href="mysqli.commit.php" class="function">mysqli_commit()</a></span> 或 <span class="function"><a href="mysqli.rollback.php" class="function">mysqli_rollback()</a></span>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-cor-release">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-cor-release">MYSQLI_TRANS_COR_RELEASE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      追加“RELEASE”到 <span class="function"><a href="mysqli.commit.php" class="function">mysqli_commit()</a></span> 或 <span class="function"><a href="mysqli.rollback.php" class="function">mysqli_rollback()</a></span>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-cor-no-release">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-cor-no-release">MYSQLI_TRANS_COR_NO_RELEASE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      追加“NO RELEASE”到 <span class="function"><a href="mysqli.commit.php" class="function">mysqli_commit()</a></span> 或 <span class="function"><a href="mysqli.rollback.php" class="function">mysqli_rollback()</a></span>。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-start-read-only">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-start-read-only">MYSQLI_TRANS_START_READ_ONLY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      使用 <span class="function"><a href="mysqli.begin-transaction.php" class="function">mysqli_begin_transaction()</a></span> 作为“START TRANSACTION READ
      ONLY”启动事务。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-start-read-write">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-start-read-write">MYSQLI_TRANS_START_READ_WRITE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      使用 <span class="function"><a href="mysqli.begin-transaction.php" class="function">mysqli_begin_transaction()</a></span> 作为“START TRANSACTION READ
      WRITE”启动事务。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-trans-start-with-consistent-snapshot">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-trans-start-with-consistent-snapshot">MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      “START TRANSACTION WITH CONSISTENT SNAPSHOT” 启动事务。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-client-ssl-dont-verify-server-cert">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-client-ssl-dont-verify-server-cert">MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="para">
      需要 MySQL 5.6.5 及其以上版本。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-is-mariadb">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-is-mariadb">MYSQLI_IS_MARIADB</a></code></strong>
     (<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>)
    </dt>
    <dd>
     <p class="para">
      mysqli 扩展是否针对 MariaDB 客户端库编译。自 PHP 8.1.2 起有效。
     </p>
    </dd>
   
   
    <dt id="constant.mysqli-async">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-async">MYSQLI_ASYNC</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      查询是异步执行，不会立即返回结果集。仅适用于 <code class="literal">mysqlnd</code>。
     </span>
    </dd>
   
   
    <dt id="constant.mysqli-on-update-now-flag">
     <strong><code><a href="mysqli.constants.php#constant.mysqli-on-update-now-flag">MYSQLI_ON_UPDATE_NOW_FLAG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      如果更新了某个字段，将获取当前时间值。
     </span>
    </dd>
   
  </dl>
</div>
<?php manual_footer($setup); ?>