File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 8cedd63d950e83ff12682253dadb7b3a462b20aa Maintainer: HonestQiao Status: ready -->
3+ <!-- EN-Revision: eae0ba503f8e8ff8f2deee9e45394da82314de7f Maintainer: HonestQiao Status: ready -->
44<!-- CREDITS: mowangjuanzi -->
55<appendix xml : id =" mysqli.constants" xmlns =" http://docbook.org/ns/docbook" >
66 &reftitle.constants;
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 28529d3539b850e870e3aa97570f4db0e53daa03 Maintainer: ichenshy Status: ready -->
3+ <!-- EN-Revision: 44bcc82c7d1a0dea5578093833d3172c0c742f5a Maintainer: ichenshy Status: ready -->
44<!-- CREDITS: mowangjuanzi -->
55<refentry xml : id =" pdostatement.fetchall" xmlns =" http://docbook.org/ns/docbook" >
66 <refnamediv >
5050 想要返回一个包含结果集中单独一列所有值的数组,需要指定 <constant >PDO::FETCH_COLUMN</constant > 。通过指定 <parameter >column</parameter > 参数获取想要的列。
5151 </para >
5252 <para >
53- 想要获取结果集中单独一列的唯一值,需要将 < constant >PDO::FETCH_COLUMN</ constant > 和 <constant >PDO::FETCH_UNIQUE</constant > 按位或 。
53+ 要根据某一列的值(而不是连续的数字)来索引结果数组,在 SQL 的列(column)列表中将该列名放在首位,并使用 <constant >PDO::FETCH_UNIQUE</constant >。这一列必须仅包含唯一值,否则部分数据将会丢失 。
5454 </para >
5555 <para >
56- 想要返回一个根据指定列把值分组后的关联数组,需要将 <constant >PDO::FETCH_COLUMN</constant > 和 <constant >PDO::FETCH_GROUP</constant > 按位或。
56+ 要将结果以三维数组的形式对指定列的值进行分组,在 SQL 的列(column)列表中将该列名放在首位,并使用 <constant >PDO::FETCH_GROUP</constant >。
57+ </para >
58+ <para >
59+ 要将结果以二维数组的形式进行分组,使用 <constant >PDO::FETCH_GROUP</constant > 与 <constant >PDO::FETCH_COLUMN</constant >
60+ 的按位或(OR)操作。结果将会按照第一列进行分组,数组元素的值将是来自第二列的相应条目的列表数组。
5761 </para >
5862 </listitem >
5963 </varlistentry >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: e8df7102cc38808bd5e559580ef20424c4861ac6 Maintainer: daijie Status: ready -->
4- <!-- CREDITS: her-cat, Luffy -->
3+ <!-- EN-Revision: 765056369ba5cfb582b2edfd9d83831b70690feb Maintainer: daijie Status: ready -->
4+ <!-- CREDITS: her-cat, Luffy, mowangjuanzi -->
55<refentry xml : id =" function.socket-recv" xmlns =" http://docbook.org/ns/docbook" >
66 <refnamediv >
77 <refname >socket_recv</refname >
144144 &reftitle.examples;
145145 <para >
146146 <example >
147- <title ><function >socket_recv</function > 范例 </title >
147+ <title ><function >socket_recv</function > 示例 </title >
148148 <para >
149- 该范例简单地使用 <function >socket_recv</function > 重写了 <xref linkend =" sockets.examples" /> 中的
150- 第一个例子 。
149+ 该示例简单地使用 <function >socket_recv</function > 重写了 <xref linkend =" sockets.examples" /> 中的
150+ 第一个示例 。
151151 </para >
152152 <programlisting role =" php" >
153153<![CDATA[
@@ -201,9 +201,7 @@ echo "OK.\n\n";
201201?>
202202]]>
203203 </programlisting >
204- <para >
205- 上面的示例将产生如下内容:
206- </para >
204+ &example.outputs.similar;
207205 <screen >
208206<![CDATA[
209207<h2>TCP/IP Connection</h2>
You can’t perform that action at this time.
0 commit comments