doc-exports/docs/dli/sqlreference/dli_08_0092.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-03-27 22:02:33 +00:00

49 lines
4.9 KiB
HTML

<a name="dli_08_0092"></a><a name="dli_08_0092"></a>
<h1 class="topictitle1">Viewing Table Properties</h1>
<div id="body8662426"><div class="section" id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_s3678d6ee129741fc838e00f7be7fcfbe"><h4 class="sectiontitle">Function</h4><p id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_a95a512a971824f94894ef323fd2324aa">Check the properties of a table.</p>
</div>
<div class="section" id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_s127873cec1e042eb89e9ac79981a74b2"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="dli_08_0092__en-us_topic_0114776186_screen14193171710324"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="n">TBLPROPERTIES</span><span class="w"> </span><span class="k">table_name</span><span class="w"> </span><span class="p">[(</span><span class="s1">'property_name'</span><span class="p">)];</span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_s24b9633a2e04420a98ba6eb4c2233ffd"><h4 class="sectiontitle">Keywords</h4><p id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_a5563d723dd924ec4a9a43b1836c62265">TBLPROPERTIES: This statement allows you to add a <strong id="dli_08_0092__b137032053142710">key/value</strong> property to a table.</p>
</div>
<div class="section" id="dli_08_0092__en-us_topic_0114776170_section1130610201331"><h4 class="sectiontitle">Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0092__en-us_topic_0114776170_table137579239220" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="dli_08_0092__en-us_topic_0114776170_row17564232219"><th align="left" class="cellrowborder" valign="top" width="15.85%" id="mcps1.3.4.2.2.3.1.1"><p id="dli_08_0092__en-us_topic_0114776170_p3756152318220">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="84.15%" id="mcps1.3.4.2.2.3.1.2"><p id="dli_08_0092__en-us_topic_0114776170_p167561023629">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_08_0092__en-us_topic_0114776170_row1375611231219"><td class="cellrowborder" valign="top" width="15.85%" headers="mcps1.3.4.2.2.3.1.1 "><p id="dli_08_0092__en-us_topic_0114776170_p107564232216">table_name</p>
</td>
<td class="cellrowborder" valign="top" width="84.15%" headers="mcps1.3.4.2.2.3.1.2 "><p id="dli_08_0092__en-us_topic_0114776170_p1575614231121">Table name</p>
</td>
</tr>
<tr id="dli_08_0092__row31536117568"><td class="cellrowborder" valign="top" width="15.85%" headers="mcps1.3.4.2.2.3.1.1 "><p id="dli_08_0092__p20153513565">property_name</p>
</td>
<td class="cellrowborder" valign="top" width="84.15%" headers="mcps1.3.4.2.2.3.1.2 "><ul id="dli_08_0092__ul635741013018"><li id="dli_08_0092__li1135819101006">If this parameter is not specified, all properties and their values are returned. </li><li id="dli_08_0092__li16358151016011">If a property name is specified, only the specified property and its value are returned. </li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_s3d37343d0a8c4fa697fc72fbc850cb76"><h4 class="sectiontitle">Precautions</h4><p id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_abd9dd3ed68da4377b292848f422fd105"><strong id="dli_08_0092__b17049435280">property_name</strong> is case sensitive. You cannot specify multiple <strong id="dli_08_0092__b1670584332814">property_name</strong> attributes at the same time. Otherwise, an error occurs.</p>
</div>
<div class="section" id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_s77bc849ddb694fe3b57f92b7e0ff12d8"><h4 class="sectiontitle">Example</h4><p id="dli_08_0092__en-us_topic_0114776186_en-us_topic_0093946966_a64b8877361954d84a03dea29938884c8">To return the value of <strong id="dli_08_0092__b107328462281">property_key1</strong> in the test table, run the following statement:</p>
<div class="codecoloring" codetype="Sql" id="dli_08_0092__en-us_topic_0114776186_screen945738103217"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SHOW</span><span class="w"> </span><span class="n">TBLPROPERTIES</span><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s1">'property_key1'</span><span class="p">);</span>
</pre></div></td></tr></table></div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0089.html">Viewing Tables</a></div>
</div>
</div>