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>
33 lines
3.6 KiB
HTML
33 lines
3.6 KiB
HTML
<a name="EN-US_TOPIC_0000001188429086"></a><a name="EN-US_TOPIC_0000001188429086"></a>
|
|
|
|
<h1 class="topictitle1">DROP PROCEDURE</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188429086__s6bce49c7db1f4c7790a0267abed14241"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188429086__a02b65e35c5964b1a870a9d3972d8acde"><strong id="EN-US_TOPIC_0000001188429086__b84235270691528">DROP PROCEDURE</strong> deletes an existing stored procedure.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429086__s0622522097764c5ebe19cb4057e23b47"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001188429086__adf5e0129f3004c37b1f86c9ba14f80e6">None.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429086__s82ace2fc16d8419ab404f4cfcdb4a248"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188429086__sc3f013d192bc473c87115f73aed26e66"><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">DROP</span><span class="w"> </span><span class="k">PROCEDURE</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="k">IF</span><span class="w"> </span><span class="k">EXISTS</span><span class="w"> </span><span class="p">]</span><span class="w"> </span><span class="n">procedure_name</span><span class="w"> </span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429086__s0e85d7dd92c2429e906194baee1717e1"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001188429086__u0253e6707d0040cfa2d8a707245ffb57"><li id="EN-US_TOPIC_0000001188429086__l0da3310c170847d28152e26b826e4ab7"><strong id="EN-US_TOPIC_0000001188429086__a0362f9ab21be4191a23f094a52d084e9">IF EXISTS</strong><p id="EN-US_TOPIC_0000001188429086__ab6e440e0c3854d4fad145b5fe204047c">Sends a notice instead of an error if the stored procedure does not exist. </p>
|
|
</li><li id="EN-US_TOPIC_0000001188429086__l65b86ebcc0f846fa93f3d085c29bf302"><strong id="EN-US_TOPIC_0000001188429086__afbf18e72873f493d8ad3932da388e9ef">procedure_name</strong><p id="EN-US_TOPIC_0000001188429086__acd248198d34c4bc8aacb47f139ffbf46">Specifies the name of the stored procedure to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0000001188429086__a6e6f8c5410c54f3192a98e0d2ead826f">Value range: An existing stored procedure name.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429086__se29f6077a84b4df8929670e732ede505"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188429086__p15944153791411">Delete the stored procedure:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188429086__screen19258151141"><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">DROP</span><span class="w"> </span><span class="k">PROCEDURE</span><span class="w"> </span><span class="n">prc_add</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188429086__s94641459fccd4beabd71f79fcbe74a5b"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188429086__a70b1bb7a6f8441ea87df592e6f5976b4"><a href="dws_06_0170.html">CREATE PROCEDURE</a></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0118.html">DDL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|