📄 function.db2-field-width.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Returns the width of the current value of the indicated column in a result set</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.db2-field-type.html">db2_field_type</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.db2-foreign-keys.html">db2_foreign_keys</a></div> <div class="up"><a href="ref.ibm-db2.html">IBM DB2 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.db2-field-width" class="refentry"> <div class="refnamediv"> <h1 class="refname">db2_field_width</h1> <p class="verinfo">(PECL ibm_db2:1.0-1.6.2)</p><p class="refpurpose"><span class="refname">db2_field_width</span> — <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"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><b>db2_field_width</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$stmt</tt></span> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$column</tt></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"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">stmt</tt></i></span> <dd> <p class="para"> Specifies a statement resource containing a result set. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">column</tt></i></span> <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> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</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, <b>db2_field_width()</b> returns <b><tt>FALSE</tt></b>. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.db2-field-display-size.html" class="function" rel="rdfs-seeAlso">db2_field_display_size()</a></li> <li class="member"><a href="function.db2-field-name.html" class="function" rel="rdfs-seeAlso">db2_field_name()</a></li> <li class="member"><a href="function.db2-field-num.html" class="function" rel="rdfs-seeAlso">db2_field_num()</a></li> <li class="member"><a href="function.db2-field-precision.html" class="function" rel="rdfs-seeAlso">db2_field_precision()</a></li> <li class="member"><a href="function.db2-field-scale.html" class="function" rel="rdfs-seeAlso">db2_field_scale()</a></li> <li class="member"><a href="function.db2-field-type.html" class="function" rel="rdfs-seeAlso">db2_field_type()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.db2-field-type.html">db2_field_type</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.db2-foreign-keys.html">db2_foreign_keys</a></div> <div class="up"><a href="ref.ibm-db2.html">IBM DB2 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -