forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
32 lines
4.2 KiB
HTML
32 lines
4.2 KiB
HTML
<a name="EN-US_TOPIC_0000001926138648"></a><a name="EN-US_TOPIC_0000001926138648"></a>
|
|
|
|
<h1 class="topictitle1">DROP BLOCK RULE</h1>
|
|
<div id="body0000001926138648"><div class="section" id="EN-US_TOPIC_0000001926138648__s838d89a72a6f4d7d9c0f9e49f477329c"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001926138648__a64cec0174a7f4190a28d9ea601fabfc8">Delete a query filtering rule.</p>
|
|
<p id="EN-US_TOPIC_0000001926138648__p11941336171015">This syntax is supported only by clusters of 9.1.0.100 and later versions.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001926138648__sa23aa140f6fc4376b9d411fb5ddf5c19"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001926138648__p177651538163613">Only a user with the database owner permission or the <strong id="EN-US_TOPIC_0000001926138648__b7311782015">gs_role_block</strong> role permission can run the <strong id="EN-US_TOPIC_0000001926138648__b7317101516010">DROP BLOCK RULE</strong> command. A system administrator has this permission by default.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001926138648__s6c35b8923bb449a9a70a2abe4e4dff0a"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001926138648__s96352857e0e945e6a9e1ca25f70a8da2"><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="n">BLOCK</span><span class="w"> </span><span class="k">RULE</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">block_name</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001926138648__s4f953a5b708c40d6ba7643477e86c1af"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001926138648__u38dbfcc927574131bb9558b593175b75"><li id="EN-US_TOPIC_0000001926138648__l76c9ab68ef47481cbe3d66f01a084a46"><strong id="EN-US_TOPIC_0000001926138648__ac0e9e72573634aad86d996c5f0bfd613">IF EXISTS</strong><p id="EN-US_TOPIC_0000001926138648__aadcbc68db8fe439c9eca3712be81a2cf">Sends a notice instead of an error if the specified query filtering rule does not exist.</p>
|
|
</li><li id="EN-US_TOPIC_0000001926138648__l9133852aa4df4cde9cfe07d90251bb56"><strong id="EN-US_TOPIC_0000001926138648__a073d4392fd9f47f786f2b4f1995b218e">block_name</strong><p id="EN-US_TOPIC_0000001926138648__a21a3999031954de5958d84c80a2cf140">Name of the query filtering rule to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0000001926138648__af5ded341c06f43768408f8b49e656946">Value range: a string, which indicates the name of an existing query filtering rule.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001926138648__se78b7860c04f4abda702554fdd468666"><h4 class="sectiontitle">Example</h4><p id="EN-US_TOPIC_0000001926138648__p17161195617180">Delete a query filtering rule named <strong id="EN-US_TOPIC_0000001926138648__b154039115">query_block</strong>.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001926138648__screen171783510201"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">DROP</span><span class="w"> </span><span class="n">BLOCK</span><span class="w"> </span><span class="k">RULE</span><span class="w"> </span><span class="n">query_block</span><span class="p">;</span>
|
|
<span class="k">DROP</span><span class="w"> </span><span class="n">BLOCK</span><span class="w"> </span><span class="k">RULE</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="n">query_block</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</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>
|
|
|