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>
31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
<a name="mrs_01_24207"></a><a name="mrs_01_24207"></a>
|
|
|
|
<h1 class="topictitle1">SHOW: Displaying Information About Databases and Tables</h1>
|
|
<div id="body0000001138847696"><p id="mrs_01_24207__p37061892811">This section describes the basic syntax and usage of the SQL statement for displaying information about databases and tables in ClickHouse.</p>
|
|
<div class="section" id="mrs_01_24207__section15282030182819"><h4 class="sectiontitle">Basic Syntax</h4><p id="mrs_01_24207__p129177369281"><strong id="mrs_01_24207__b179171336152812">show databases</strong></p>
|
|
<p id="mrs_01_24207__p9917163614286"><strong id="mrs_01_24207__b109171436172812">show tables</strong></p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24207__section14679051162815"><h4 class="sectiontitle">Example</h4><pre class="screen" id="mrs_01_24207__screen1946011419213">-- Query database information.
|
|
show databases;
|
|
┌─name────┐
|
|
│ default │
|
|
│ system │
|
|
│ test │
|
|
└───────┘
|
|
-- Query table information.
|
|
show tables;
|
|
┌─name──┐
|
|
│ t1 │
|
|
│ test │
|
|
│ test2 │
|
|
│ test5 │
|
|
└─────┘</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24199.html">Common ClickHouse SQL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|