forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
22 lines
2.0 KiB
HTML
22 lines
2.0 KiB
HTML
<a name="ddm_08_0025"></a><a name="ddm_08_0025"></a>
|
|
|
|
<h1 class="topictitle1">HINT-TABLE</h1>
|
|
<div id="body1600050169485"><p id="ddm_08_0025__p778112619212">HINTs are instructions within a SQL statement that tell the optimizer to execute the statement in a flexible way. This section describes how to use HINT syntax to delete data from a table.</p>
|
|
<p id="ddm_08_0025__p174162613016"><strong id="ddm_08_0025__b11170520132816">Command Format:</strong></p>
|
|
<p id="ddm_08_0025__p19151517111511"><strong id="ddm_08_0025__b53581626111517">/*+table=</strong><em id="ddm_08_0025__i33593266150"><physical_table_name></em><strong id="ddm_08_0025__b843263181512">*/ TRUNCATE TABLE </strong><em id="ddm_08_0025__i543393113159"><table_name></em></p>
|
|
<p id="ddm_08_0025__p139461421019"><strong id="ddm_08_0025__b56993236284">Description:</strong></p>
|
|
<p id="ddm_08_0025__p8060118">Deleting data in physical table <em id="ddm_08_0025__i16835417496"><physical_table_name></em> in the current database shard does not affect other physical tables.</p>
|
|
<p id="ddm_08_0025__p117681729165512"><strong id="ddm_08_0025__b1494774314514">Example output before the table is deleted:</strong></p>
|
|
<p id="ddm_08_0025__p15383102211595"><span><img id="ddm_08_0025__image138352215915" src="en-us_image_0000001685307430.png"></span></p>
|
|
<p id="ddm_08_0025__p9707542112113"><strong id="ddm_08_0025__b1120218474512">Example output after the table is deleted:</strong></p>
|
|
<p id="ddm_08_0025__p1316931052217"><span><img id="ddm_08_0025__image1016819109229" src="en-us_image_0000001733266617.png"></span></p>
|
|
<div class="note" id="ddm_08_0025__note1462131013712"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ddm_08_0025__p10832923205916">Hints are valid only for sharded tables.</p>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ddm_08_0023.html">TRUNCATE TABLE</a></div>
|
|
</div>
|
|
</div>
|
|
|