function.db2-get-option.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 314 行 · 第 1/2 页
HTML
314 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Retrieves an option value for a statement resource or a connection resource</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-free-stmt.html">db2_free_stmt</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.db2-lob-read.html">db2_lob_read</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-get-option" class="refentry"> <div class="refnamediv"> <h1 class="refname">db2_get_option</h1> <p class="verinfo">(PECL ibm_db2:1.6.0-1.6.2)</p><p class="refpurpose"><span class="refname">db2_get_option</span> — <span class="dc-title">Retrieves an option value for a statement resource or a connection resource</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>db2_get_option</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$resource</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$option</tt></span> )</div> <p class="para rdfs-comment"> Retrieves the value of a specified option value for a statement resource or a connection resource. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">resource</tt></i></span> <dd> <p class="para"> A valid statement resource as returned from <a href="function.db2-prepare.html" class="function">db2_prepare()</a> or a valid connection resource as returned from <a href="function.db2-connect.html" class="function">db2_connect()</a> or <a href="function.db2-pconnect.html" class="function">db2_pconnect()</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">option</tt></i></span> <dd> <p class="para"> A valid statement or connection options. The following new options are available as of ibm_db2 version 1.6.0. They provide useful tracking information that can be set during execution with <b>db2_get_option()</b>. <blockquote><p><b class="note">Note</b>: <b>Note</b><br /> Prior versions of ibm_db2 do not support these new options. <br /> When the value in each option is being set, some servers might not handle the entire length provided and might truncate the value. <br /> To ensure that the data specified in each option is converted correctly when transmitted to a host system, use only the characters A through Z, 0 through 9, and the underscore (_) or period (.). <br /> </p></blockquote> <dl> <dt> <span class="term"><i><tt class="parameter">userid</tt></i></span> <dd> <p class="para"> <i>SQL_ATTR_INFO_USERID</i> - A pointer to a null-terminated character string used to identify the client user ID sent to the host database server when using DB2 Connect. <blockquote><p><b class="note">Note</b>: <b>Note</b><br /> DB2 for z/OS and OS/390 servers support up to a length of 16 characters. This user-id is not to be confused with the authentication user-id, it is for identification purposes only and is not used for any authorization. <br /> </p></blockquote> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">acctstr</tt></i></span> <dd> <p class="para"> <i>SQL_ATTR_INFO_ACCTSTR</i> - A pointer to a null-terminated character string used to identify the client accounting string sent to the host database server when using DB2 Connect. <blockquote><p><b class="note">Note</b>: <b>Note</b><br /> DB2 for z/OS and OS/390 servers support up to a length of 200 characters. <br /> </p></blockquote> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">applname</tt></i></span> <dd> <p class="para"> <i>SQL_ATTR_INFO_APPLNAME</i> - A pointer to a null-terminated character string used to identify the client application name sent to the host database server when using DB2 Connect. <blockquote><p><b class="note">Note</b>: <b>Note</b><br /> DB2 for z/OS and OS/390 servers support up to a length of 32 characters. <br /> </p></blockquote> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">wrkstnname</tt></i></span> <dd>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?