📄 sqlite3.createaggregate.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Registers a PHP function for use as an SQL aggregate function</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="sqlite3.construct.html">SQLite3::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="sqlite3.createfunction.html">SQLite3::createFunction</a></div> <div class="up"><a href="class.sqlite3.html">SQLite3</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="sqlite3.createaggregate" class="refentry"> <div class="refnamediv"> <h1 class="refname">SQLite3::createAggregate</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SQLite3::createAggregate</span> — <span class="dc-title">Registers a PHP function for use as an SQL aggregate function</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><b><b>SQLite3::createAggregate</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</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">$step_callback</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">$final_callback</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$argument_count</tt></span> ] )</div> <p class="para rdfs-comment"> Registers a PHP function or user-defined function for use as an SQL aggregate function for use within SQL statements. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">name</tt></i></span> <dd> <p class="para"> Name of the SQL aggregate to be created or redefined. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">step_callback</tt></i></span> <dd> <p class="para"> The name of a PHP function or user-defined function to apply as a callback for every item in the aggregate. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">final_callback</tt></i></span> <dd> <p class="para"> The name of a PHP function or user-defined function to apply as a callback at the end of the aggregate data. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">argument_count</tt></i></span> <dd> <p class="para"> The number of arguments that the SQL aggregate takes. If this parameter is negative, then the SQL aggregate may take any number of arguments. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> upon successful creation of the aggregate, <b><tt>FALSE</tt></b> on failure. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sqlite3.construct.html">SQLite3::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="sqlite3.createfunction.html">SQLite3::createFunction</a></div> <div class="up"><a href="class.sqlite3.html">SQLite3</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 + -