Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
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>
2022-12-09 14:55:21 +00:00

47 lines
4.5 KiB
HTML

<a name="mrs_01_1447"></a><a name="mrs_01_1447"></a>
<h1 class="topictitle1">DROP SECONDARY INDEX</h1>
<div id="body1595920214698"><div class="section" id="mrs_01_1447__s9c726969f4a04150b36549fc80bdba4f"><h4 class="sectiontitle">Function</h4><p id="mrs_01_1447__a5513688e6b7248de87c1661d4524e1f2">This command is used to delete the existing secondary index table in a specific table.</p>
</div>
<div class="section" id="mrs_01_1447__s5e51752eec464718a672ce8db43040c5"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_1447__a814966c0fed44e8ea85e3e1c147be44d"><b><span class="cmdname" id="mrs_01_1447__cmdname1511914152258">DROP INDEX</span></b> <i><span class="varname" id="mrs_01_1447__v4258fe77970c4d4d957d680a6f95326f">[IF EXISTS] index_name</span></i><b><span class="cmdname" id="mrs_01_1447__cmdname821951932515"> ON</span></b> <i><span class="varname" id="mrs_01_1447__v804e68b18fdb4ecfac1e2185d0af8372">[db_name.]table_name</span></i>;</p>
</div>
<div class="section" id="mrs_01_1447__s85bbfaf958cd49978b10a9584dc4f49c"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1447__td0795b7831fb4c56962be412fac9ba59" frame="border" border="1" rules="all"><caption><b>Table 1 </b>DROP SECONDARY INDEX parameters</caption><thead align="left"><tr id="mrs_01_1447__r326851be311247d9b300b2418bb8bf2b"><th align="left" class="cellrowborder" valign="top" width="20.380000000000003%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_1447__aac78d5017b6643bf996d56c4f0388229">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="79.62%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_1447__a15d23ff424fb4c4c80993eb7d906bb78">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1447__r5b25c229c41747dd9f9228331f72df1e"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1447__a434b972d312849fe9af000eae6f5beb8">index_name</p>
</td>
<td class="cellrowborder" valign="top" width="79.62%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1447__afbbcb94a086747b280b3316dccd98ebd">Name of the index table. Table name contains letters, digits, and underscores (_).</p>
</td>
</tr>
<tr id="mrs_01_1447__raa13e3dfd2f449a7aa1884213456d169"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1447__aeb461d8b75574438bdbf6692b0795cbf">db_Name</p>
</td>
<td class="cellrowborder" valign="top" width="79.62%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1447__a4c1c4e1e66834c239eff957b50fd8ef7">Name of the database. If the parameter is not specified, the current database is used.</p>
</td>
</tr>
<tr id="mrs_01_1447__r42ce55c99ddb4e1cb5486fc7f183e17a"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1447__aa8863b79e48e48c3b1ef904fbd7ba049">table_name</p>
</td>
<td class="cellrowborder" valign="top" width="79.62%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1447__a25eeca4e2b95409eb8a11c4803d17d6d">Name of the table to be deleted.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_1447__s783f699445274d95a30f8b9416fef5c4"><h4 class="sectiontitle">Usage Guidelines</h4><p id="mrs_01_1447__a623084455136453fab19a8dd0503e85a">In this command, <strong id="mrs_01_1447__a3f6c78a523264fd5be4bccb79d60f3aa">IF EXISTS</strong> and <strong id="mrs_01_1447__a1637122b2b364a0bbaef52530e90a865">db_name</strong> are optional.</p>
</div>
<div class="section" id="mrs_01_1447__s15dfe1654a3c4d45bbebbf306b3e8527"><h4 class="sectiontitle">Examples</h4><p id="mrs_01_1447__ab0476906fc1a46bd96b049757dc09d40"><b><span class="cmdname" id="mrs_01_1447__cmdname02565712519">DROP INDEX</span></b> <i><span class="varname" id="mrs_01_1447__v3ad3779a866a430d8fd6ac91f02ab171">if exists productNameIndexTable</span></i> <b><span class="cmdname" id="mrs_01_1447__cmdname1899318214266">ON</span></b> <i><span class="varname" id="mrs_01_1447__v0f9baa06cffc4827a68e5c57ab4e6b3c">productdb.productSalesTable</span></i>;</p>
</div>
<div class="section" id="mrs_01_1447__sad026580a2914fefa3e5e3eba131e9cc"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_1447__ad0d85e22c419452497b0323226025342">Secondary Index Table will be deleted. Index information will be cleared in CarbonData table and the success message will be recorded in system logs.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1437.html">DML</a></div>
</div>
</div>