maxdb.constants.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 176 行
HTML
176 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Predefined Constants</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="maxdb.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="maxdb.examples.html">Examples</a></div> <div class="up"><a href="book.maxdb.html">MaxDB</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <p class="para"> The following constants to use with <a href="function.maxdb-options.html" class="function">maxdb_options()</a> are defined. For further description of these constants see <a href="http://maxdb.sap.com/documentation/" class="link external">» http://maxdb.sap.com/documentation/</a>. <table border="5"> <caption><b>MaxDB PHP client constants</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Constant</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_COMPNAME</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">MAXDB_APPLICATION</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">MAXDB_APPVERSION</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">MAXDB_SQLMODE</td> <td colspan="1" rowspan="1" align="left">The SQL mode.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_UNICODE</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">MAXDB_TIMEOUT</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">MAXDB_ISOLATIONLEVEL</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">MAXDB_PACKETCOUNT</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">MAXDB_STATEMENTCACHESIZE</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">MAXDB_CURSORPREFIX</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> <p class="para"> The function <a href="function.maxdb-fetch-array.html" class="function">maxdb_fetch_array()</a> uses a constant for the different types of result arrays. The following constants are defined: <table border="5"> <caption><b>MaxDB fetch constants</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Constant</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_ASSOC</td> <td colspan="1" rowspan="1" align="left"> Columns are returned into the array having the fieldname as the array index. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_ASSOC_UPPER</td> <td colspan="1" rowspan="1" align="left"> Columns are returned into the array having the upper case fieldname as the array index. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_ASSOC_LOWER</td> <td colspan="1" rowspan="1" align="left"> Columns are returned into the array having the lower case fieldname as the array index. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_BOTH</td> <td colspan="1" rowspan="1" align="left"> Columns are returned into the array having both a numerical index and the fieldname as the array index. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">MAXDB_NUM</td> <td colspan="1" rowspan="1" align="left"> Columns are returned into the array having a numerical index to the fields. This index starts with 0, the first field in the result. </td> </tr> </tbody> </colgroup> </table> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="maxdb.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="maxdb.examples.html">Examples</a></div> <div class="up"><a href="book.maxdb.html">MaxDB</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?