forked from docs/doc-exports
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>
47 lines
3.0 KiB
HTML
47 lines
3.0 KiB
HTML
<a name="dli_08_15093"></a><a name="dli_08_15093"></a>
|
|
|
|
<h1 class="topictitle1">Collection Functions</h1>
|
|
<div id="body0000001309855893"><div class="section" id="dli_08_15093__section1347204216431"><h4 class="sectiontitle">Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_08_15093__table179611515144413" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Collection functions</caption><thead align="left"><tr id="dli_08_15093__row199611615174417"><th align="left" class="cellrowborder" valign="top" width="37.45%" id="mcps1.3.1.2.2.3.1.1"><p id="dli_08_15093__p15961131544414">Collection Function</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.55%" id="mcps1.3.1.2.2.3.1.2"><p id="dli_08_15093__p1796161504414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_08_15093__row1696151554412"><td class="cellrowborder" valign="top" width="37.45%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_15093__p1838391411112">CARDINALITY(array)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_15093__p199614152441">Returns the number of elements in the array.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15093__row19961191513447"><td class="cellrowborder" valign="top" width="37.45%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_15093__p796191518444">array '[' INT ']'</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_15093__p9211428713">Returns the element at the INT position in the array. The index starts at 1.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15093__row1796110152445"><td class="cellrowborder" valign="top" width="37.45%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_15093__p47831132818">ELEMENT(array)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_15093__p161051927175011">Returns the unique element in the array (with a base of 1); returns <strong id="dli_08_15093__b86621714441">NULL</strong> if the array is empty; throws an exception if there are multiple elements in the array.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15093__row169613158449"><td class="cellrowborder" valign="top" width="37.45%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_15093__p978511456112">CARDINALITY(map)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_15093__p10290105217115">Returns the number of entries in the map.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_08_15093__row209611115184410"><td class="cellrowborder" valign="top" width="37.45%" headers="mcps1.3.1.2.2.3.1.1 "><p id="dli_08_15093__p15961215154416">map '[' value ']'</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.1.2.2.3.1.2 "><p id="dli_08_15093__p13481513925">Returns the value corresponding to the specified key in the map.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_15085.html">Built-In Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|