Yang, Tong 3f5759eed2 MRS comp-lts 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>
2023-01-19 17:08:45 +00:00

42 lines
4.0 KiB
HTML

<a name="mrs_01_1446"></a><a name="mrs_01_1446"></a>
<h1 class="topictitle1">SHOW SECONDARY INDEXES</h1>
<div id="body8662426"><div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_s4fc94dd9dc8b4216848b7917c49e23cb"><h4 class="sectiontitle">Function</h4><p id="mrs_01_1446__en-us_topic_0000001173630898_a3fc47f72d4ed48a295fbf83b55e66a9f">This command is used to list all secondary index tables in the CarbonData table.</p>
</div>
<div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_sa9ad3304a81c473783c1c360e0caeef4"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_1446__en-us_topic_0000001173630898_a69e84e9eb7aa4e4e89e815b843bbe262"><b><span class="cmdname" id="mrs_01_1446__en-us_topic_0000001173630898_cmdname155232040171911">SHOW INDEXES ON db_name.table_name</span></b>;</p>
</div>
<div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_sbdbb0599fd904dfd854791ee4dc98ee9"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1446__en-us_topic_0000001173630898_t966d4eb085f348d19990cc309c33d0b1" frame="border" border="1" rules="all"><caption><b>Table 1 </b>SHOW SECONDARY INDEXES parameters</caption><thead align="left"><tr id="mrs_01_1446__en-us_topic_0000001173630898_ra8e0e4852d1943718c1a4390a9fece0a"><th align="left" class="cellrowborder" valign="top" width="20.380000000000003%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_1446__en-us_topic_0000001173630898_a0f1a5a7ac48f4d70aed5620580879c63">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_1446__en-us_topic_0000001173630898_ab10cd6e31d694adf8ed958af218d3ab4">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1446__en-us_topic_0000001173630898_r2d6971d8a6d84c4e97dcc7858b21d69c"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1446__en-us_topic_0000001173630898_ab608d97d5d204f528b4c18c407da281a">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_1446__en-us_topic_0000001173630898_ad13cdff8f521461fa93b595fca3a2355">Database name. It consists of letters, digits, and special characters (_).</p>
</td>
</tr>
<tr id="mrs_01_1446__en-us_topic_0000001173630898_r2517a21672b14e6f8bf74d084a789b09"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1446__en-us_topic_0000001173630898_a817dc7ef44d14388986d03a014c9db54">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_1446__en-us_topic_0000001173630898_a86af30bc4dbd4951a8ce1b219393c177">Name of the database table. It consists of letters, digits, and special characters (_).</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_s9441e9db8ea942fd9537084cacb3f0a2"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_1446__en-us_topic_0000001173630898_aa835961499694d77a06f1a5a8a91a2c8"><strong id="mrs_01_1446__en-us_topic_0000001173630898_b192207149981527">db_name</strong> is optional.</p>
</div>
<div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_sd90b4ad83961456d8fab72a71288aad8"><h4 class="sectiontitle">Examples</h4><p id="mrs_01_1446__en-us_topic_0000001173630898_abd30a83f33164541859f597bcc485cb5"><b><span class="cmdname" id="mrs_01_1446__en-us_topic_0000001173630898_cmdname2255744111918">SHOW INDEXES ON productsales.product</span></b>;</p>
</div>
<div class="section" id="mrs_01_1446__en-us_topic_0000001173630898_s5d84102340e640229ddc892b5bdac553"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_1446__en-us_topic_0000001173630898_a43b7ae81b88b4035a56c6a65611f4ac5">All index tables and corresponding index columns in a given CarbonData table will be listed.</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>