function.oci-execute.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 124 行
HTML
124 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Executes a statement</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.oci-error.html">oci_error</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-fetch-all.html">oci_fetch_all</a></div> <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.oci-execute" class="refentry"> <div class="refnamediv"> <h1 class="refname">oci_execute</h1> <p class="verinfo">(PHP 5, PECL oci8:1.1-1.2.4)</p><p class="refpurpose"><span class="refname">oci_execute</span> — <span class="dc-title">Executes a statement</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>oci_execute</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$statement</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$mode</tt></span> ] )</div> <p class="para rdfs-comment"> Executes a previously parsed <i><tt class="parameter">statement</tt></i>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">statement</tt></i></span> <dd> <p class="para"> A valid OCI statement identifier. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">mode</tt></i></span> <dd> <p class="para"> Allows you to specify the execution mode (default is <b><tt>OCI_COMMIT_ON_SUCCESS</tt></b>). </p> <p class="para"> If you don't want statements to be committed automatically, you should specify <b><tt>OCI_DEFAULT</tt></b> as your <i><tt class="parameter">mode</tt></i>. </p> <p class="para"> When using <b><tt>OCI_DEFAULT</tt></b> mode, you're creating a transaction. Transactions are automatically rolled back when you close the connection, or when the script ends, whichever is soonest. You need to explicitly call <a href="function.oci-commit.html" class="function">oci_commit()</a> to commit the transaction, or <a href="function.oci-rollback.html" class="function">oci_rollback()</a> to abort it. </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> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <blockquote><p><b class="note">Note</b>: In PHP versions before 5.0.0 you must use <a href="function.ociexecute.html" class="function">ociexecute()</a> instead. This name still can be used, it was left as alias of <b>oci_execute()</b> for downwards compatability. This, however, is deprecated and not recommended. <br /> </p></blockquote> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.oci-parse.html" class="function" rel="rdfs-seeAlso">oci_parse()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.oci-error.html">oci_error</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-fetch-all.html">oci_fetch_all</a></div> <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?