forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
32 lines
3.5 KiB
HTML
32 lines
3.5 KiB
HTML
<a name="EN-US_TOPIC_0000001188110564"></a><a name="EN-US_TOPIC_0000001188110564"></a>
|
|
|
|
<h1 class="topictitle1">ABORT</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188110564__s1da9ee263dc045208082e70b9a78aaa8"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188110564__p470751945118"><strong id="EN-US_TOPIC_0000001188110564__b842352706202441">ABORT</strong> rolls back the current transaction and cancels the changes in the transaction.</p>
|
|
<p id="EN-US_TOPIC_0000001188110564__a571deeaf2d0d4586bf3a8e343f8751bc">This command is equivalent to <a href="dws_06_0266.html">ROLLBACK</a>, and is present only for historical reasons. Now <strong id="EN-US_TOPIC_0000001188110564__b842352706185147">ROLLBACK</strong> is recommended.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188110564__s536a74de39fe4fa495fd5d5656040665"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001188110564__a58015d5dbb5548e78e8bc1f882b0931e"><strong id="EN-US_TOPIC_0000001188110564__b84235270620252">ABORT</strong> has no impact outside a transaction, but will provoke a warning.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188110564__s37247b42e1604b3a92cc8324e4e10689"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188110564__s7071880190d941c49d02434c28e0d77e"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">ABORT</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="k">WORK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">TRANSACTION</span><span class="w"> </span><span class="p">]</span><span class="w"> </span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188110564__s6542a6cfc58640669a9bd684b57a6431"><h4 class="sectiontitle">Parameter Description</h4><p id="EN-US_TOPIC_0000001188110564__en-us_topic_0059778271_p172607335571"><strong id="EN-US_TOPIC_0000001188110564__afd713ca93a42428992a769ab632207d0">WORK | TRANSACTION</strong></p>
|
|
<p id="EN-US_TOPIC_0000001188110564__ae28a195c31e1421eabe3d7e212226fc3">Optional keyword has no effect except increasing readability.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188110564__section18164572209"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188110564__p267112715101">Abort a transaction. Performed update operations will be undone.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188110564__screen571351010106"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">ABORT</span><span class="p">;</span><span class="w"> </span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188110564__s47394eddf9484a2aa6c2b9bb514e7261"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188110564__a5826cf70e8eb477fb3053f72b1e86676"><a href="dws_06_0264.html">SET TRANSACTION</a>, <a href="dws_06_0259.html">COMMIT | END</a>, <a href="dws_06_0266.html">ROLLBACK</a></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0254.html">TCL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|