doc-exports/docs/dws/dev/dws_06_0210.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

34 lines
5.0 KiB
HTML

<a name="EN-US_TOPIC_0000001188110560"></a><a name="EN-US_TOPIC_0000001188110560"></a>
<h1 class="topictitle1">DROP TEXT SEARCH CONFIGURATION</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188110560__sc24ee76b811f4d149a699d6b09e0e4b5"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188110560__a779bf96411694431bffaebc1b3845087"><strong id="EN-US_TOPIC_0000001188110560__b1141865387131619">DROP TEXT SEARCH CONFIGURATION</strong> deletes an existing text search configuration.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110560__sea00668d483f43ee99ef833bffd87eed"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001188110560__p177121419165516">To run the <strong id="EN-US_TOPIC_0000001188110560__b126006762133259">DROP TEXT SEARCH CONFIGURATION</strong> command, you must be the owner of the text search configuration.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110560__s2ed4f15c75654c7eb753d64c6cb3ebde"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188110560__se398f242928040feacd300de8529e8e6"><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="n">CONFIGURATION</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_0000001188110560__s520dcb3ac3e14889b5c6e1c9c55803d5"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001188110560__u3533262dea4c457fa37a272642213d00"><li id="EN-US_TOPIC_0000001188110560__la52f9b7c75ef4657ba2e04fdb4c8d210"><strong id="EN-US_TOPIC_0000001188110560__afa41f39278e544bdbcaba11dbe5434c8">IF EXISTS</strong><p id="EN-US_TOPIC_0000001188110560__a1999b8e9184a49d98bc78d637f8f9592">Sends a notice instead of an error if the specified text search configuration does not exist. </p>
</li><li id="EN-US_TOPIC_0000001188110560__lc7f0a750b3eb4cd49b3220e46ae5bdc2"><strong id="EN-US_TOPIC_0000001188110560__ad0e92b3a434943efa4e438411e22840d">name</strong><p id="EN-US_TOPIC_0000001188110560__a54a2692fe6cf43828c961c08c21029ee">Specifies the name (optionally schema-qualified) of a text search configuration to be deleted.</p>
</li><li id="EN-US_TOPIC_0000001188110560__l6ecb76cc53ad4e7e8afe8ae9115c1d83"><strong id="EN-US_TOPIC_0000001188110560__a2f8d2a7139d948a4bd64f62742f2eff6">CASCADE</strong><p id="EN-US_TOPIC_0000001188110560__aab2f23c071a34aa78fa83e4a46bd9482">Automatically deletes objects that depend on the text search configuration to be deleted.</p>
</li><li id="EN-US_TOPIC_0000001188110560__ld826c790e36f41de9a434eb3c4c3cb94"><strong id="EN-US_TOPIC_0000001188110560__a93700274634743a491f7b0327f0a86fa">RESTRICT</strong><p id="EN-US_TOPIC_0000001188110560__a591b0c5bc7774c7e86437deb52c246c2">Refuses to delete the text search configuration if any objects depend on it. This is the default.</p>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110560__sca11c51a9b744530aac40e869013fc6b"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188110560__p1336128191410">Delete the text search configuration <strong id="EN-US_TOPIC_0000001188110560__b93221760733259">ngram1</strong>:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188110560__screen73591832141411"><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="n">CONFIGURATION</span><span class="w"> </span><span class="n">ngram1</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110560__sed535825722c48c1825650f471ca6620"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188110560__abce656e3a30f49bab5f900685fdb38e7"><a href="dws_06_0145.html">ALTER TEXT SEARCH CONFIGURATION</a>, <a href="dws_06_0182.html">CREATE TEXT SEARCH CONFIGURATION</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>