uTools-Manuals/docs/php/sqlite_single_query.html
2019-04-28 19:00:34 +08:00

41 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>Executes a query and returns either an array for one single column or the value of the first row</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.sqlite-single-query" class="refentry">
<div class="refnamediv">
<h1 class="refname">sqlite_single_query</h1>
<h1 class="refname">SQLiteDatabase::singleQuery</h1>
<p class="verinfo">(PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.1)</p><p class="refpurpose"><span class="refname">sqlite_single_query</span> -- <span class="refname">SQLiteDatabase::singleQuery</span> &mdash; <span class="dc-title">
Executes a query and returns either an array for one single column or the value of the first row
</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.sqlite-single-query-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>sqlite_single_query</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$db</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$first_row_only</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$decode_binary</code></span>
]] ) : <span class="type">array</span></div>
<p class="para rdfs-comment">面向对象风格 (method):</p>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="methodname"><strong>SQLiteDatabase::singleQuery</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$first_row_only</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$decode_binary</code></span>
]] ) : <span class="type">array</span></div>
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档,仅有参数列表。</p></div>
</div>
</div></div></div></body></html>