uTools-Manuals/docs/php/db2_field_width.html
2019-04-08 23:22:26 +08:00

97 lines
4.1 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>Returns the width of the current value of the indicated column in a result set</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.db2-field-width" class="refentry">
<div class="refnamediv">
<h1 class="refname">db2_field_width</h1>
<p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_field_width</span> &mdash; <span class="dc-title">
Returns the width of the current value of the indicated column in a result set
</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.db2-field-width-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>db2_field_width</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$stmt</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">$column</code></span>
) : <span class="type">int</span></div>
<p class="para rdfs-comment">
Returns the width of the current value of the indicated column in a result
set. This is the maximum width of the column for a fixed-length data type,
or the actual width of the column for a variable-length data type.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.db2-field-width-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">stmt</code></dt>
<dd>
<p class="para">
Specifies a statement resource containing a result set.
</p>
</dd>
<dt>
<code class="parameter">column</code></dt>
<dd>
<p class="para">
Specifies the column in the result set. This can either be an integer
representing the 0-indexed position of the column, or a string
containing the name of the column.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.db2-field-width-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns an integer containing the width of the specified character or
binary data type column in a result set. If the specified column does not
exist in the result set, <span class="function"><strong>db2_field_width()</strong></span> returns
<strong><code>FALSE</code></strong>.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.db2-field-width-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="db2_field_display_size.html" class="function" rel="rdfs-seeAlso">db2_field_display_size()</a> - Returns the maximum number of bytes required to display a column</span></li>
<li class="member"><span class="function"><a href="db2_field_name.html" class="function" rel="rdfs-seeAlso">db2_field_name()</a> - Returns the name of the column in the result set</span></li>
<li class="member"><span class="function"><a href="db2_field_num.html" class="function" rel="rdfs-seeAlso">db2_field_num()</a> - Returns the position of the named column in a result set</span></li>
<li class="member"><span class="function"><a href="db2_field_precision.html" class="function" rel="rdfs-seeAlso">db2_field_precision()</a> - Returns the precision of the indicated column in a result set</span></li>
<li class="member"><span class="function"><a href="db2_field_scale.html" class="function" rel="rdfs-seeAlso">db2_field_scale()</a> - Returns the scale of the indicated column in a result set</span></li>
<li class="member"><span class="function"><a href="db2_field_type.html" class="function" rel="rdfs-seeAlso">db2_field_type()</a> - Returns the data type of the indicated column in a result set</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>