-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathconstants.xml
103 lines (100 loc) · 3.21 KB
/
constants.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 40667918dcff1d5c9f7ecdc88b5caca24ba0686c Maintainer: yorgo Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<appendix xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&extension.constants;
<para>
允许在
<function>mysql_connect</function> 函数和 <function>mysql_pconnect</function>
函数中指定更多的客户端标记。下面列出所定义的常量:
<table xml:id="mysql.client-flags">
<title>MySQL 客户端常量</title>
<tgroup cols="2">
<thead>
<row>
<entry>常量</entry>
<entry>说明</entry>
</row>
</thead>
<tbody>
<row xml:id="constant.mysql-client-compress">
<entry><constant>MYSQL_CLIENT_COMPRESS</constant></entry>
<entry>使用压缩的通讯协议</entry>
</row>
<row xml:id="constant.mysql-client-ignore-space">
<entry><constant>MYSQL_CLIENT_IGNORE_SPACE</constant></entry>
<entry>允许在函数名后留空格位</entry>
</row>
<row xml:id="constant.mysql-client-interactive">
<entry><constant>MYSQL_CLIENT_INTERACTIVE</constant></entry>
<entry>允许设置断开连接之前所空闲等候的 interactive_timeout 时间(代替 wait_timeout)。</entry>
</row>
<row xml:id="constant.mysql-client-ssl">
<entry><constant>MYSQL_CLIENT_SSL</constant></entry>
<entry>
使用 SSL 加密。本标志仅在 MySQL 客户端库版本为
4.x 或更高版本时可用。在 PHP 4 和 Windows 版的 PHP 5
安装包中绑定的都是 3.23.x。
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
<function>mysql_fetch_array</function> 函数使用一个常量来表示所返回数组的类型。下面是常量的定义:
<table xml:id="mysql.constants.fetch">
<title>MySQL fetch 常量</title>
<tgroup cols="2">
<thead>
<row>
<entry>常量</entry>
<entry>说明</entry>
</row>
</thead>
<tbody>
<row xml:id="constant.mysql-assoc">
<entry><constant>MYSQL_ASSOC</constant></entry>
<entry>
返回的数据列使用字段名作为数组的索引名。
</entry>
</row>
<row xml:id="constant.mysql-both">
<entry><constant>MYSQL_BOTH</constant></entry>
<entry>
返回的数据列使用字段名及数字索引作为数组的索引名。
</entry>
</row>
<row xml:id="constant.mysql-num">
<entry><constant>MYSQL_NUM</constant></entry>
<entry>
返回的数据列使用数字索引作为数组的索引名。索引从 0 开始,表示返回结果的第一个字段。
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->