uTools-Manuals/docs/php/sqlite_column.html
2019-04-28 19:00:34 +08:00

124 lines
5.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Fetches a column from the current row of a result set</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.sqlite-column" class="refentry">
<div class="refnamediv">
<h1 class="refname">sqlite_column</h1>
<h1 class="refname">SQLiteResult::column</h1>
<h1 class="refname">SQLiteUnbuffered::column</h1>
<p class="verinfo">(PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">sqlite_column</span> -- <span class="refname">SQLiteResult::column</span> -- <span class="refname">SQLiteUnbuffered::column</span> &mdash; <span class="dc-title">Fetches a column from the current row of a result set</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.sqlite-column-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>sqlite_column</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$index_or_name</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$decode_binary</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>SQLiteResult::column</strong></span>
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$index_or_name</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$decode_binary</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>SQLiteUnbuffered::column</strong></span>
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$index_or_name</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$decode_binary</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
<p class="para rdfs-comment">
Fetches the value of a column named <code class="parameter">index_or_name</code>
(if it is a string), or of the ordinal column numbered
<code class="parameter">index_or_name</code> (if it is an integer) from the
current row of the query result handle <code class="parameter">result</code>.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.sqlite-column-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">result</code></dt>
<dd>
<p class="para">
The SQLite result resource. This parameter is not required when using
the object-oriented method.
</p>
</dd>
<dt>
<code class="parameter">index_or_name</code></dt>
<dd>
<p class="para">
The column index or name to fetch.
</p>
</dd>
<dt>
<code class="parameter">decode_binary</code></dt>
<dd>
<p class="para">
<code class="parameter">decode_binary</code> 参数设置为 <strong><code>TRUE</code></strong>默认值PHP 会解码那些由
<span class="function"><a href="sqlite_escape_string.html" class="function">sqlite_escape_string()</a></span>
编码后的二进制数据。通常应保留此值为其默认值,除非要与其他使用 SQLlite 的应用程序建立的数据交互。</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.sqlite-column-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns the column value.
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.sqlite-column-notes">
<h3 class="title">注释</h3>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
Use this function when you are iterating a large result set with many
columns, or with columns that contain large amounts of data.
</p>
</p></blockquote>
</div>
<div class="refsect1 seealso" id="refsect1-function.sqlite-column-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="sqlite_fetch_string.html" class="function" rel="rdfs-seeAlso">sqlite_fetch_string()</a> - 别名 sqlite_fetch_single</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>