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

71 lines
2.4 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 information about a current connection</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.odbc-data-source" class="refentry">
<div class="refnamediv">
<h1 class="refname">odbc_data_source</h1>
<p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">odbc_data_source</span> &mdash; <span class="dc-title">Returns information about a current connection</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.odbc-data-source-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>odbc_data_source</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection_id</code></span>
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$fetch_type</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
This function will return the list of available DSN (after calling it
several times).
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.odbc-data-source-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">connection_id</code></dt>
<dd>
<p class="para">ODBC 连接标识符,详见
<span class="function"><a href="odbc_connect.html" class="function">odbc_connect()</a></span></p>
</dd>
<dt>
<code class="parameter">fetch_type</code></dt>
<dd>
<p class="para">
The <code class="parameter">fetch_type</code> can be one of two constant types:
<strong><code>SQL_FETCH_FIRST</code></strong>, <strong><code>SQL_FETCH_NEXT</code></strong>.
Use <strong><code>SQL_FETCH_FIRST</code></strong> the first time this function is
called, thereafter use the <strong><code>SQL_FETCH_NEXT</code></strong>.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.odbc-data-source-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns <strong><code>FALSE</code></strong> on error, and an array upon success.
</p>
</div>
</div></div></div></body></html>