📄 function.maxdb-stmt-execute.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Executes a prepared Query</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-stmt-error.html">maxdb_stmt_error</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-stmt-fetch.html">maxdb_stmt_fetch</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-stmt-execute" class="refentry"> <div class="refnamediv"> <h1 class="refname">maxdb_stmt_execute</h1> <h1 class="refname">stmt->execute</h1> <p class="verinfo">(PECL maxdb:1.0-7.6.00.38)</p><p class="refpurpose"><span class="refname">maxdb_stmt_execute</span> -- <span class="refname">stmt->execute</span> — <span class="dc-title">Executes a prepared Query</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_stmt_execute</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$stmt</tt></span> )</div> <p class="para rdfs-comment">Object oriented style (method):</p> <div class="classsynopsis"> <div class="ooclass"><b class="classname">stmt</b></div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>execute</b></b></span> ( <span class="methodparam">void</span> )</div> </div> <p class="para"> The <b>maxdb_stmt_execute()</b> function executes a query that has been previously prepared using the <a href="function.maxdb-prepare.html" class="function">maxdb_prepare()</a> function represented by the <i><tt class="parameter">stmt</tt></i> resource. When executed any parameter markers which exist will automatically be replaced with the appropiate data. </p> <p class="para"> If the statement is UPDATE, DELETE, or INSERT, the total number of affected rows can be determined by using the <a href="function.maxdb-stmt-affected-rows.html" class="function">maxdb_stmt_affected_rows()</a> function. Likewise, if the query yields a result set the <a href="function.maxdb-fetch.html" class="function">maxdb_fetch()</a> function is used. </p> <blockquote><p><b class="note">Note</b>: When using <b>maxdb_stmt_execute()</b>, the <a href="function.maxdb-fetch.html" class="function">maxdb_fetch()</a> function must be used to fetch the data prior to preforming any additional queries. <br /> </p></blockquote> </div> <div class="refsect1 returnvalues">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -