forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
95 lines
9.3 KiB
HTML
95 lines
9.3 KiB
HTML
<a name="EN-US_TOPIC_0000001098975012"></a><a name="EN-US_TOPIC_0000001098975012"></a>
|
|
|
|
<h1 class="topictitle1">Conventions</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_section9768027811"><h4 class="sectiontitle">Example Conventions</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_table2157164314264" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row1515734372611"><th align="left" class="cellrowborder" valign="top" width="26.02%" id="mcps1.3.1.2.1.3.1.1"><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p9157184392620"><strong id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_b842352706101436">Example</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="73.98%" id="mcps1.3.1.2.1.3.1.2"><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p7157943142613"><strong id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_b842352706101515">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row161578435261"><td class="cellrowborder" valign="top" width="26.02%" headers="mcps1.3.1.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__p2333102254119">dbadmin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.98%" headers="mcps1.3.1.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p121571043182612">Indicates the user operating and maintaining <span id="EN-US_TOPIC_0000001098975012__text1286495126">GaussDB(DWS)</span> appointed when the cluster is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row151572043132614"><td class="cellrowborder" valign="top" width="26.02%" headers="mcps1.3.1.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__p1597114541063">8000</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.98%" headers="mcps1.3.1.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1215713437261">Indicates the port number used by <span id="EN-US_TOPIC_0000001098975012__text467726869">GaussDB(DWS)</span> to monitor connection requests from the client.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p61571343122610">SQL examples in this manual are developed based on the TPC-DS model. Before you execute the examples, install the TPC-DS benchmark by following the instructions on the official website <a href="https://www.tpc.org/tpcds/" target="_blank" rel="noopener noreferrer">https://www.tpc.org/tpcds/</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_section13414619381"><h4 class="sectiontitle">SQL Syntax Text Conventions</h4><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p16961156174213">To better understand the syntax usage, you can refer to the SQL syntax text conventions described as follows: </p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_table1779115272618" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row147915214268"><th align="left" class="cellrowborder" valign="top" width="26.950000000000003%" id="mcps1.3.2.3.1.3.1.1"><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p157916521264"><strong id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_b842352706102353">Format</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="73.05%" id="mcps1.3.2.3.1.3.1.2"><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1279115211266"><strong id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_b842352706102356">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row157914526260"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p6791152112616">Uppercase characters</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p187935220260">Indicates that keywords must be in uppercase.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row17791652172611"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p079152192613">Lowercase characters</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p167920523269">Indicates that parameters must be in lowercase.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row127965222619"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p179205242615">[ ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p77945212264">Indicates that the items in brackets [] are optional.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row1879165219267"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p47975272620">...</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p3792052162619">Indicates that preceding elements can appear repeatedly. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row279145262617"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p579115212613">[ x | y | ... ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1279175210267">Indicates that one item is selected from two or more options or no item is selected.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row379652132614"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1879115211265">{ x | y | ... }</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1579052152616">Indicates that one item is selected from two or more options.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row47918525261"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p379155242618">[x | y | ... ] [ ... ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p27945212614">Indicates that multiple parameters or no parameter can be selected. If multiple parameters are selected, separate them with spaces. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row279195242615"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p079752122611">[ x | y | ... ] [ ,... ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1779115212264">Indicates that multiple parameters or no parameter can be selected. If multiple parameters are selected, separate them with commas (,).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row1379152162615"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p679175212265">{ x | y | ... } [ ... ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p57945202616">Indicates that at least one parameter can be selected. If multiple parameters are selected, separate them with spaces.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_row1179552122618"><td class="cellrowborder" valign="top" width="26.950000000000003%" headers="mcps1.3.2.3.1.3.1.1 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p97925232619">{ x | y | ... } [ ,... ]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.05%" headers="mcps1.3.2.3.1.3.1.2 "><p id="EN-US_TOPIC_0000001098975012__en-us_topic_0099576066_p1779152122615">Indicates that at least one parameter can be selected. If multiple parameters are selected, separate them with commas (,).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0001.html">Welcome</a></div>
|
|
</div>
|
|
</div>
|
|
|