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>
44 lines
3.8 KiB
HTML
44 lines
3.8 KiB
HTML
<a name="mrs_01_1446"></a><a name="mrs_01_1446"></a>
|
|
|
|
<h1 class="topictitle1">SHOW SECONDARY INDEXES</h1>
|
|
<div id="body1595920214459"><div class="section" id="mrs_01_1446__s4fc94dd9dc8b4216848b7917c49e23cb"><h4 class="sectiontitle">Function</h4><p id="mrs_01_1446__a3fc47f72d4ed48a295fbf83b55e66a9f">This command is used to list all secondary index tables in the CarbonData table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1446__sa9ad3304a81c473783c1c360e0caeef4"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_1446__a69e84e9eb7aa4e4e89e815b843bbe262"><b><span class="cmdname" id="mrs_01_1446__cmdname155232040171911">SHOW INDEXES ON db_name.table_name</span></b>;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1446__sbdbb0599fd904dfd854791ee4dc98ee9"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1446__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__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__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__ab10cd6e31d694adf8ed958af218d3ab4">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1446__r2d6971d8a6d84c4e97dcc7858b21d69c"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1446__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__ad13cdff8f521461fa93b595fca3a2355">Database name. It consists of letters, digits, and special characters (_).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1446__r2517a21672b14e6f8bf74d084a789b09"><td class="cellrowborder" valign="top" width="20.380000000000003%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1446__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__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__s9441e9db8ea942fd9537084cacb3f0a2"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_1446__aa835961499694d77a06f1a5a8a91a2c8"><strong id="mrs_01_1446__b192207149981527">db_name</strong> is optional.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1446__sd90b4ad83961456d8fab72a71288aad8"><h4 class="sectiontitle">Examples</h4><p id="mrs_01_1446__p119241022145814"><strong id="mrs_01_1446__b721649152418">create table productdb.productSalesTable(id int,price int,productName string,city string) stored as carbondata;</strong></p>
|
|
<p id="mrs_01_1446__p5442121805810"><b><span class="cmdname" id="mrs_01_1446__cmdname18381431161918">CREATE INDEX productNameIndexTable on table productdb.productSalesTable (productName,city) as 'carbondata' ;</span></b></p>
|
|
<p id="mrs_01_1446__abd30a83f33164541859f597bcc485cb5"><b><span class="cmdname" id="mrs_01_1446__cmdname2255744111918">SHOW INDEXES ON productdb.productSalesTable</span></b>;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1446__s5d84102340e640229ddc892b5bdac553"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_1446__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>
|
|
|