📄 function.oci-rollback.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Rolls back outstanding transaction</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-result.html">oci_result</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-server-version.html">oci_server_version</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-rollback" class="refentry"> <div class="refnamediv"> <h1 class="refname">oci_rollback</h1> <p class="verinfo">(PHP 5, PECL oci8:1.1-1.2.4)</p><p class="refpurpose"><span class="refname">oci_rollback</span> — <span class="dc-title">Rolls back outstanding transaction</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_rollback</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$connection</tt></span> )</div> <p class="para rdfs-comment"> Rolls back all outstanding statements for the Oracle <i><tt class="parameter">connection</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">connection</tt></i></span> <dd> <p class="para"> An Oracle connection identifier, returned by <a href="function.oci-connect.html" class="function">oci_connect()</a> or <a href="function.oci-pconnect.html" class="function">oci_pconnect()</a>. </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>: 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 <b>oci_rollback()</b> to abort it. <br /> </p></blockquote> <blockquote><p><b class="note">Note</b>: In PHP versions before 5.0.0 you must use <a href="function.ocirollback.html" class="function">ocirollback()</a> instead. This name still can be used, it was left as alias of <b>oci_rollback()</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-commit.html" class="function" rel="rdfs-seeAlso">oci_commit()</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-result.html">oci_result</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-server-version.html">oci_server_version</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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -