⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.maxdb-options.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Set options</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.maxdb-num-rows.html">maxdb_num_rows</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-param-count.html">maxdb_param_count</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.maxdb-options" class="refentry"> <div class="refnamediv">  <h1 class="refname">maxdb_options</h1>  <h1 class="refname">maxdb-&gt;options</h1>  <p class="verinfo">(PECL maxdb:1.0-7.6.00.38)</p><p class="refpurpose"><span class="refname">maxdb_options</span> -- <span class="refname">maxdb-&gt;options</span> &mdash; <span class="dc-title">Set options</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <p class="para">Procedural style:</p>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>maxdb_options</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$link</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$option</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">$value</tt></span>   )</div>  <p class="para rdfs-comment">Object oriented style (method)</p>  <div class="classsynopsis">   <div class="ooclass"><b class="classname">maxdb</b></div>   <div class="methodsynopsis dc-description">    <span class="type">bool</span>     <span class="methodname"><b><b>options</b></b></span>     ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$option</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">$value</tt></span>    )</div>  </div>  <p class="para">   <b>maxdb_options()</b> can be used to set extra connect options   and affect behavior for a connection.  </p>  <p class="para">   This function may be called multiple times to set several options.  </p>  <p class="para">   <b>maxdb_options()</b> should be called after <a href="function.maxdb-init.html" class="function">maxdb_init()</a>   and before <a href="function.maxdb-real-connect.html" class="function">maxdb_real_connect()</a>.  </p>  <p class="para">   The parameter <i><tt class="parameter">option</tt></i> is the option that you want to set,   the <i><tt class="parameter">value</tt></i> is the value for the option. For detailed   description of the options see <a href="http://maxdb.sap.com/documentation/" class="link external">&raquo; http://maxdb.sap.com/documentation/</a>   The parameter <i><tt class="parameter">option</tt></i> can be one of the following values:   <table border="5">    <caption><b>Valid options</b></caption>    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Name</th>       <th colspan="1">Description</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_COMPNAME</tt></b></td>       <td colspan="1" rowspan="1" align="left">The component name used to initialise the SQLDBC runtime environment.</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_APPLICATION</tt></b></td>       <td colspan="1" rowspan="1" align="left">The application to be connected to the database.</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_APPVERSION</tt></b></td>       <td colspan="1" rowspan="1" align="left">The version of the application.</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_SQLMODE</tt></b></td>       <td colspan="1" rowspan="1" align="left">        The SQL mode.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_UNICODE</tt></b></td>       <td colspan="1" rowspan="1" align="left">         TRUE, if the connection is an unicode (UCS2) client or FALSE, if not.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_TIMEOUT</tt></b></td>       <td colspan="1" rowspan="1" align="left">         The maximum allowed time of inactivity after which the connection to the         database is closed by the system.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_ISOLATIONLEVEL</tt></b></td>       <td colspan="1" rowspan="1" align="left">         Specifies whether and how shared locks and exclusive locks are implicitly         requested or released.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_PACKETCOUNT</tt></b></td>       <td colspan="1" rowspan="1" align="left">         The number of different request packets used for the connection.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_STATEMENTCACHESIZE</tt></b></td>       <td colspan="1" rowspan="1" align="left">         The number of prepared statements to be cached for the connection for re-use.       </td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left"><b><tt>MAXDB_CURSORPREFIX</tt></b></td>       <td colspan="1" rowspan="1" align="left">         The prefix to use for result tables that are automatically named.       </td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   See <a href="function.maxdb-real-connect.html" class="function">maxdb_real_connect()</a>.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.maxdb-init.html" class="function" rel="rdfs-seeAlso">maxdb_init()</a></li>    <li class="member"><a href="function.maxdb-real-connect.html" class="function" rel="rdfs-seeAlso">maxdb_real_connect()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.maxdb-num-rows.html">maxdb_num_rows</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-param-count.html">maxdb_param_count</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB 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 + -