doc-exports/docs/dws/dev/dws_06_0210.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

34 lines
5.0 KiB
HTML

<a name="EN-US_TOPIC_0000001145830679"></a><a name="EN-US_TOPIC_0000001145830679"></a>
<h1 class="topictitle1">DROP TEXT SEARCH CONFIGURATION</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001145830679__sc24ee76b811f4d149a699d6b09e0e4b5"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001145830679__a779bf96411694431bffaebc1b3845087"><strong id="EN-US_TOPIC_0000001145830679__b1141865387131619">DROP TEXT SEARCH CONFIGURATION</strong> deletes an existing text search configuration.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001145830679__sea00668d483f43ee99ef833bffd87eed"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001145830679__p177121419165516">To run the <strong id="EN-US_TOPIC_0000001145830679__b11121436163914">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_0000001145830679__s2ed4f15c75654c7eb753d64c6cb3ebde"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145830679__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><span class="w"></span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001145830679__s520dcb3ac3e14889b5c6e1c9c55803d5"><h4 class="sectiontitle">Parameter Description</h4><ul id="EN-US_TOPIC_0000001145830679__u3533262dea4c457fa37a272642213d00"><li id="EN-US_TOPIC_0000001145830679__la52f9b7c75ef4657ba2e04fdb4c8d210"><strong id="EN-US_TOPIC_0000001145830679__afa41f39278e544bdbcaba11dbe5434c8">IF EXISTS</strong><p id="EN-US_TOPIC_0000001145830679__a1999b8e9184a49d98bc78d637f8f9592">Sends a notice instead of an error if the specified text search configuration does not exist. </p>
</li><li id="EN-US_TOPIC_0000001145830679__lc7f0a750b3eb4cd49b3220e46ae5bdc2"><strong id="EN-US_TOPIC_0000001145830679__ad0e92b3a434943efa4e438411e22840d">name</strong><p id="EN-US_TOPIC_0000001145830679__a54a2692fe6cf43828c961c08c21029ee">Specifies the name (optionally schema-qualified) of a text search configuration to be deleted.</p>
</li><li id="EN-US_TOPIC_0000001145830679__l6ecb76cc53ad4e7e8afe8ae9115c1d83"><strong id="EN-US_TOPIC_0000001145830679__a2f8d2a7139d948a4bd64f62742f2eff6">CASCADE</strong><p id="EN-US_TOPIC_0000001145830679__aab2f23c071a34aa78fa83e4a46bd9482">Automatically deletes objects that depend on the text search configuration to be deleted.</p>
</li><li id="EN-US_TOPIC_0000001145830679__ld826c790e36f41de9a434eb3c4c3cb94"><strong id="EN-US_TOPIC_0000001145830679__a93700274634743a491f7b0327f0a86fa">RESTRICT</strong><p id="EN-US_TOPIC_0000001145830679__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_0000001145830679__sca11c51a9b744530aac40e869013fc6b"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001145830679__p1336128191410">Delete the text search configuration <strong id="EN-US_TOPIC_0000001145830679__b1907174710392">ngram1</strong>.</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145830679__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><span class="w"></span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001145830679__sed535825722c48c1825650f471ca6620"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001145830679__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>