forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
35 lines
3.4 KiB
HTML
35 lines
3.4 KiB
HTML
<a name="mrs_01_24271"></a><a name="mrs_01_24271"></a>
|
|
|
|
<h1 class="topictitle1">TRUNCATE Hudi TABLE</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_sd8e4ffaa71fc4034a9e2882d7c664984"><h4 class="sectiontitle">Function</h4><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a5196137f907243259747ce96c5c8b405">This command is used to clear all data in a specific table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_s62a70620dabc4e4eb96778f71c580e7f"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a876a375878f34475b81778d30639af9e"><strong id="mrs_01_24271__en-us_topic_0000001219350529_b344962511417">TRUNCATE TABLE </strong><em id="mrs_01_24271__en-us_topic_0000001219350529_i1130820282413">tableIdentifier</em></p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_sd00174c8f3e8417ea0037e034192d094"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_td330633f0f1a4e839893ee60997ac66b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_r520a27852cb34cb7928beb87ae57c383"><th align="left" class="cellrowborder" valign="top" width="30.91%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a2d7b4ba625ae4e73b3de582488dc2354">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.08999999999999%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a13d327fe75f04ee5aa721ffef31b1687">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_re6d39247ca1244249d7687ea10dcd0c8"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a94889b6d62534a839457c1f3f6ecc741">tableIdentifier</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a9cc3bd83b1044286b7a79068ee33df1e">Table name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_s02de0ffe591b41d9b8435c03f68288f4"><h4 class="sectiontitle">Examples</h4><pre class="screen" id="mrs_01_24271__en-us_topic_0000001219350529_screen1922013393412">truncate table h0_1;</pre>
|
|
</div>
|
|
<div class="section" id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_sc1e4d30b28cb4317b1b12496c7d2b1d6"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_24271__en-us_topic_0000001219350529_en-us_topic_0265792792_a1d061e440570489199ac5d773bb2c76f">Data in the table is cleared. You can run the <strong id="mrs_01_24271__en-us_topic_0000001219350529_b17697123016472">QUERY</strong> statement to check whether data in the table has been deleted.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24263.html">Hudi DDL</a></div>
|
|
</div>
|
|
</div>
|
|
|