forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
17 lines
1.7 KiB
HTML
17 lines
1.7 KiB
HTML
<a name="mrs_01_24208"></a><a name="mrs_01_24208"></a>
|
|
|
|
<h1 class="topictitle1">DROP: Deleting a Table</h1>
|
|
<div id="body8662426"><p id="mrs_01_24208__en-us_topic_0000001219029005_p795718189259">This section describes the basic syntax and usage of the SQL statement for deleting a ClickHouse table.</p>
|
|
<div class="section" id="mrs_01_24208__en-us_topic_0000001219029005_section49341742151616"><h4 class="sectiontitle">Basic Syntax</h4><p id="mrs_01_24208__en-us_topic_0000001219029005_p3255184581616"><strong id="mrs_01_24208__en-us_topic_0000001219029005_b1779384816">DROP </strong>[<strong id="mrs_01_24208__en-us_topic_0000001219029005_b198081745184">TEMPORARY</strong>] <strong id="mrs_01_24208__en-us_topic_0000001219029005_b482044712815">TABLE </strong>[<strong id="mrs_01_24208__en-us_topic_0000001219029005_b1385225511810">IF EXISTS</strong>] [<em id="mrs_01_24208__en-us_topic_0000001219029005_i1335112593818">database_name</em>.]<em id="mrs_01_24208__en-us_topic_0000001219029005_i11153192298">name </em>[<strong id="mrs_01_24208__en-us_topic_0000001219029005_b255317611915">ON CLUSTER</strong> <em id="mrs_01_24208__en-us_topic_0000001219029005_i2966581896">cluster</em>]</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24208__en-us_topic_0000001219029005_section13685554111618"><h4 class="sectiontitle">Example</h4><pre class="screen" id="mrs_01_24208__en-us_topic_0000001219029005_screen145211827183">-- Delete the <strong id="mrs_01_24208__en-us_topic_0000001219029005_b1199619340114825">t1</strong> table.
|
|
drop t1;</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24199.html">Common ClickHouse SQL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|