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>
36 lines
6.1 KiB
HTML
36 lines
6.1 KiB
HTML
<a name="EN-US_TOPIC_0000001233628573"></a><a name="EN-US_TOPIC_0000001233628573"></a>
|
|
|
|
<h1 class="topictitle1">DROP TEXT SEARCH DICTIONARY</h1>
|
|
<div id="body1560407392208"><div class="section" id="EN-US_TOPIC_0000001233628573__s11dbafd02fc245e8ab6884159af9fd0b"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001233628573__p46481919173114"><strong id="EN-US_TOPIC_0000001233628573__b5971039195914">DROP</strong><strong id="EN-US_TOPIC_0000001233628573__b49918397595"> TEXT SEARCH </strong><strong id="EN-US_TOPIC_0000001233628573__b6102153920595">DICTIONARY</strong> deletes a full-text retrieval dictionary.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233628573__s3885984ccb904e76a8b521140774edbb"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000001233628573__ul11440124205318"><li id="EN-US_TOPIC_0000001233628573__li10355217162410"><strong id="EN-US_TOPIC_0000001233628573__b12255174051519">DROP</strong> is not supported by predefined dictionaries.</li><li id="EN-US_TOPIC_0000001233628573__li10464891245">Only the owner of a dictionary can do <strong id="EN-US_TOPIC_0000001233628573__b2991953131512">DROP</strong> to the dictionary. System administrators have this permission by default.</li><li id="EN-US_TOPIC_0000001233628573__li67602155415">Execute <strong id="EN-US_TOPIC_0000001233628573__b12590145710111">DROP...CASCADE</strong> only when necessary because this operation will delete the text search configuration that uses this dictionary.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233628573__s097e199c371040739945504301b7678d"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233628573__s49960349d09943568d3fc82d29c074fc"><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="nb">TEXT</span><span class="w"> </span><span class="k">SEARCH</span><span class="w"> </span><span class="k">DICTIONARY</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">name</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="k">CASCADE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">RESTRICT</span><span class="w"> </span><span class="p">]</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233628573__s49eade590b0f4b098e648dd1dc5e3e60"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001233628573__u94351f73b3e945628b8649a4f9cc4f3e"><li id="EN-US_TOPIC_0000001233628573__la52f9b7c75ef4657ba2e04fdb4c8d210"><strong id="EN-US_TOPIC_0000001233628573__afa41f39278e544bdbcaba11dbe5434c8">IF EXISTS</strong><p id="EN-US_TOPIC_0000001233628573__a1999b8e9184a49d98bc78d637f8f9592">Reports a notice instead of throwing an error if the specified full-text retrieval dictionary does not exist.</p>
|
|
</li><li id="EN-US_TOPIC_0000001233628573__l58e147705fc64066994924862c8f66e5"><em id="EN-US_TOPIC_0000001233628573__i2065642921414">name</em><p id="EN-US_TOPIC_0000001233628573__ab6d27b2b82d348be80745fa87fb975c7">Specifies the name of a dictionary to be deleted. (If you do not specify a schema name, the dictionary in the current schema will be deleted by default.)</p>
|
|
<p id="EN-US_TOPIC_0000001233628573__a9ee2ac78101e427f90c718c3df1d1e74">Value range: name of an existing dictionary</p>
|
|
</li><li id="EN-US_TOPIC_0000001233628573__l6ecb76cc53ad4e7e8afe8ae9115c1d83"><strong id="EN-US_TOPIC_0000001233628573__a2f8d2a7139d948a4bd64f62742f2eff6">CASCADE</strong><p id="EN-US_TOPIC_0000001233628573__aab2f23c071a34aa78fa83e4a46bd9482">Automatically deletes dependent objects of a dictionary and then deletes all dependent objects of these objects in sequence.</p>
|
|
<p id="EN-US_TOPIC_0000001233628573__p1110754945915">If any text search configuration that uses the dictionary exists, <strong id="EN-US_TOPIC_0000001233628573__b1093575612563">DROP</strong> execution will fail. You can add <strong id="EN-US_TOPIC_0000001233628573__b16263460116">CASCADE</strong> to delete all text search configurations and dictionaries that use the dictionary.</p>
|
|
</li><li id="EN-US_TOPIC_0000001233628573__ld826c790e36f41de9a434eb3c4c3cb94"><strong id="EN-US_TOPIC_0000001233628573__a93700274634743a491f7b0327f0a86fa">RESTRICT</strong><p id="EN-US_TOPIC_0000001233628573__a591b0c5bc7774c7e86437deb52c246c2">Rejects the deletion of a dictionary if any object depends on the dictionary. This is the default.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233628573__s974b31b9463848259512367e2d285b74"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001233628573__p109363972519">Delete the <strong id="EN-US_TOPIC_0000001233628573__b96351153833516">english</strong> dictionary:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233628573__screen15925623162520"><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="nb">TEXT</span><span class="w"> </span><span class="k">SEARCH</span><span class="w"> </span><span class="k">DICTIONARY</span><span class="w"> </span><span class="n">english</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233628573__s56e26682f0c24a8987ba07e3099ff0a9"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001233628573__p63691819155"><a href="dws_06_0146.html">ALTER TEXT SEARCH DICTIONARY</a>, <a href="dws_06_0183.html">CREATE TEXT SEARCH DICTIONARY</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>
|
|
|