📄 function.ingres-autocommit.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Switch autocommit on or off</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="ref.ingres.html">Ingres II Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ingres-close.html">ingres_close</a></div> <div class="up"><a href="ref.ingres.html">Ingres II Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ingres-autocommit" class="refentry"> <div class="refnamediv"> <h1 class="refname">ingres_autocommit</h1> <p class="verinfo">(PHP 4 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres:1.0-1.4.3)</p><p class="refpurpose"><span class="refname">ingres_autocommit</span> — <span class="dc-title">Switch autocommit on or off</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>ingres_autocommit</b></b></span> ([ <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$link</tt></span> ] )</div> <p class="para rdfs-comment"> <b>ingres_autocommit()</b> is called before opening a transaction (before the first call to <a href="function.ingres-query.html" class="function">ingres_query()</a> or just after a call to <a href="function.ingres-rollback.html" class="function">ingres_rollback()</a> or <a href="function.ingres-commit.html" class="function">ingres_commit()</a>) to switch the "autocommit" mode of the server on or off (when the script begins the autocommit mode is off). </p> <p class="para"> When the autocommit mode is on, every query is automatically committed by the server, as if <a href="function.ingres-commit.html" class="function">ingres_commit()</a> was called after every call to <a href="function.ingres-query.html" class="function">ingres_query()</a>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">link</tt></i></span> <dd> <p class="para"> The connection link identifier. If not specified, the last opened link is used. </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 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.ingres-query.html" class="function" rel="rdfs-seeAlso">ingres_query()</a></li> <li class="member"><a href="function.ingres-rollback.html" class="function" rel="rdfs-seeAlso">ingres_rollback()</a></li> <li class="member"><a href="function.ingres-commit.html" class="function" rel="rdfs-seeAlso">ingres_commit()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.ingres.html">Ingres II Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ingres-close.html">ingres_close</a></div> <div class="up"><a href="ref.ingres.html">Ingres II 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 + -