mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
119 lines
5.6 KiB
HTML
119 lines
5.6 KiB
HTML
<!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>返回所取得行中字段的值</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.oci-result" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">oci_result</h1>
|
||
<p class="verinfo">(PHP 5, PHP 7, PECL OCI8 >= 1.1.0)</p><p class="refpurpose"><span class="refname">oci_result</span> — <span class="dc-title">返回所取得行中字段的值</span></p>
|
||
|
||
</div>
|
||
<div class="refsect1 description" id="refsect1-function.oci-result-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>oci_result</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$statement</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">$field</code></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">
|
||
<span class="function"><strong>oci_result()</strong></span> 返回由 <span class="function"><a href="oci_fetch.html" class="function">oci_fetch()</a></span>
|
||
所取得的当前行中 <code class="parameter">field</code>
|
||
字段的数据。<span class="function"><strong>oci_result()</strong></span>
|
||
对所有类型都返回字符串只除了抽象类型(ROWID,LOB 和
|
||
FILE)。<span class="function"><strong>oci_result()</strong></span> 在出错时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
<p class="para">
|
||
可以使用列序号(从 1 开始)或列名(大写)作为
|
||
<code class="parameter">col</code> 的参数。
|
||
</p>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
在 PHP 5.0.0 之前的版本必须使用 <span class="function"><a href="ociresult.html" class="function">ociresult()</a></span>
|
||
替代本函数。该函数名仍然可用,为向下兼容作为
|
||
<span class="function"><strong>oci_result()</strong></span> 的别名。不过其已被废弃,不推荐使用。
|
||
</p>
|
||
</p></blockquote>
|
||
<p class="para">要获取 OCI8
|
||
扩展进行数据类型映射的细节,请参见<a href="oci8.datatypes.html" class="link">驱动所支持的数据类型</a>。</p>
|
||
<p class="para">
|
||
参见 <span class="function"><a href="oci_fetch_array.html" class="function">oci_fetch_array()</a></span>,<span class="function"><a href="oci_fetch_assoc.html" class="function">oci_fetch_assoc()</a></span>,<span class="function"><a href="oci_fetch_object.html" class="function">oci_fetch_object()</a></span>,<span class="function"><a href="oci_fetch_row.html" class="function">oci_fetch_row()</a></span>
|
||
和 <span class="function"><a href="oci_fetch_all.html" class="function">oci_fetch_all()</a></span>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.oci-result-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">statement</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">field</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Can be either use the column number (1-based) or the column name (in
|
||
uppercase).
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.oci-result-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
Returns everything as strings except for abstract types (ROWIDs, LOBs and
|
||
FILEs). Returns <strong><code>FALSE</code></strong> on error.
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 notes" id="refsect1-function.oci-result-notes">
|
||
<h3 class="title">注释</h3>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
In PHP versions before 5.0.0 you must use <span class="function"><a href="ociresult.html" class="function">ociresult()</a></span> instead.
|
||
This name still can be used, it was left as alias of
|
||
<span class="function"><strong>oci_result()</strong></span> for downwards compatability.
|
||
This, however, is deprecated and not recommended.
|
||
</p>
|
||
</p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.oci-result-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="oci_fetch_array.html" class="function" rel="rdfs-seeAlso">oci_fetch_array()</a> - Returns the next row from a query as an associative or numeric array</span></li>
|
||
<li class="member"><span class="function"><a href="oci_fetch_assoc.html" class="function" rel="rdfs-seeAlso">oci_fetch_assoc()</a> - Returns the next row from a query as an associative array</span></li>
|
||
<li class="member"><span class="function"><a href="oci_fetch_object.html" class="function" rel="rdfs-seeAlso">oci_fetch_object()</a> - Returns the next row from a query as an object</span></li>
|
||
<li class="member"><span class="function"><a href="oci_fetch_row.html" class="function" rel="rdfs-seeAlso">oci_fetch_row()</a> - Returns the next row from a query as a numeric array</span></li>
|
||
<li class="member"><span class="function"><a href="oci_fetch_all.html" class="function" rel="rdfs-seeAlso">oci_fetch_all()</a> - 获取结果数据的所有行到一个数组</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |