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
4.3 KiB
HTML
33 lines
4.3 KiB
HTML
<a name="EN-US_TOPIC_0000001188270544"></a><a name="EN-US_TOPIC_0000001188270544"></a>
|
|
|
|
<h1 class="topictitle1">DROP ROLE</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188270544__s0cf33e9e81ad4a55bc374584360f99ca"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188270544__a1bafbcef025b47f88d2406312b5a8bfe"><strong id="EN-US_TOPIC_0000001188270544__b1471014792710">DROP ROLE</strong> deletes a specified role.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270544__s5e76ce64505846cbb56b42b37faeca5e"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001188270544__p1985208155111">If a "role is being used by other users" error is displayed when you run <strong id="EN-US_TOPIC_0000001188270544__b235513292532">DROP ROLE</strong>, it might be that threads cannot respond to signals in a timely manner during the <strong id="EN-US_TOPIC_0000001188270544__b835832919532">CLEAN CONNECTION</strong> process. As a result, connections are not completely cleared. In this case, you need to run <strong id="EN-US_TOPIC_0000001188270544__b635882912536">CLEAN CONNECTION</strong> again.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270544__s3fbb95f781ed42acb5236a4c1e5be0d5"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188270544__s1aa4e68f1bdf4b2aa892007368ebf509"><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">ROLE</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">role_name</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_0000001188270544__s56aa378dd3884fe5b99b87329c9e93c2"><a name="EN-US_TOPIC_0000001188270544__s56aa378dd3884fe5b99b87329c9e93c2"></a><a name="s56aa378dd3884fe5b99b87329c9e93c2"></a><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001188270544__u3daddc2d46374556939d09212de6b4d2"><li id="EN-US_TOPIC_0000001188270544__l1b8e6e614db44d08ae1b36c20cb9f299"><strong id="EN-US_TOPIC_0000001188270544__a0016f57f75fa481ca4659fcd41475102">IF EXISTS</strong><p id="EN-US_TOPIC_0000001188270544__a34d402b33e6144988881eb5fb0a6579c">Sends a notice instead of an error if the specified role does not exist. </p>
|
|
</li><li id="EN-US_TOPIC_0000001188270544__l0c3efc68b0ec48688fd5a95e55140ec8"><strong id="EN-US_TOPIC_0000001188270544__abbc7be11f9b049e79a42da42bcb053fa">role_name</strong><p id="EN-US_TOPIC_0000001188270544__a261545591087437a8f510f03e7ce5b85">Specifies the name of the role to be deleted.</p>
|
|
<p id="EN-US_TOPIC_0000001188270544__afdbc13e88951409388bb8a728c5a4f16">Value range: An existing role.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270544__s3ff92f5089cb4291b96221b5f2b85e18"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188270544__p198699489486">Delete the <strong id="EN-US_TOPIC_0000001188270544__b1379095618119">manager</strong> role:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188270544__screen797019439141"><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">ROLE</span><span class="w"> </span><span class="n">manager</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270544__s8051aef9a3ca40258246e8ef62680ff9"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188270544__a946c4f9ce2be427e839757ed56a8781a"><a href="dws_06_0172.html">CREATE ROLE</a>, <a href="dws_06_0134.html">ALTER ROLE</a>, <a href="dws_06_0222.html">SET ROLE</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>
|
|
|