doc-exports/docs/dws/dev/dws_06_0246.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

27 lines
3.1 KiB
HTML

<a name="EN-US_TOPIC_0000001099150908"></a><a name="EN-US_TOPIC_0000001099150908"></a>
<h1 class="topictitle1">DEALLOCATE</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001099150908__s09d0a405021c42a78c20e6b6a6e5d8e5"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001099150908__a0cd664b3acc74e3fae6a79d84fbb3ba3"><strong id="EN-US_TOPIC_0000001099150908__b842352706172617">DEALLOCATE</strong> deallocates a previously prepared statement. If you do not explicitly deallocate a prepared statement, it is deallocated when the session ends. </p>
<p id="EN-US_TOPIC_0000001099150908__a4821448918e6405f9ef1afc9777c592e">The <strong id="EN-US_TOPIC_0000001099150908__b842352706172520">PREPARE</strong> key word is always ignored.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001099150908__s8a2772d909bd43ec8bb8fe22883e21f0"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001099150908__a27ad44cb41e14c0994064d18c389b49c">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001099150908__s3f63b9c993d640da9863f61076e0dc55"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001099150908__s180ede03f81945c3aa04376411e523e7"><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">DEALLOCATE</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="k">PREPARE</span><span class="w"> </span><span class="p">]</span><span class="w"> </span><span class="err">{</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">ALL</span><span class="w"> </span><span class="err">}</span><span class="p">;</span><span class="w"></span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001099150908__s55b0281a7ad541b5b888d146f7ce8c57"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001099150908__udbf7705fe48b4ea78ae46531aa9f63ce"><li id="EN-US_TOPIC_0000001099150908__ld7c1cde511524f2dbdb0f26992fd86e4"><strong id="EN-US_TOPIC_0000001099150908__a323ebcebcca24572912a61313221cae1">name</strong><p id="EN-US_TOPIC_0000001099150908__aacde56fab77f459785dd87d2be262531">Specifies the name of the prepared statement to deallocate.</p>
</li><li id="EN-US_TOPIC_0000001099150908__l44c2997acdea4782b7a95031e715f366"><strong id="EN-US_TOPIC_0000001099150908__a8bced77b19d1421a9d4334fdf4af4beb">ALL</strong><p id="EN-US_TOPIC_0000001099150908__aa798586bc64a4db09deb2aa5ef2fe305">Deallocates all prepared statements.</p>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001099150908__s692881aab98442a1912dca37faec031b"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001099150908__a71dc4da42ac24cb88cea2159dbcfff2e">None</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0242.html">DCL Syntax</a></div>
</div>
</div>