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>
446 lines
45 KiB
HTML
446 lines
45 KiB
HTML
<a name="dli_08_0191"></a><a name="dli_08_0191"></a>
|
||
|
||
<h1 class="topictitle1">Mathematical Operation Functions</h1>
|
||
<div id="body1574406512507"><div class="section" id="dli_08_0191__section1394824134214"><h4 class="sectiontitle">Relational Operators</h4><p id="dli_08_0191__en-us_topic_0060575883_p112019671814">All data types can be compared by using relational operators and the result is returned as a BOOLEAN value.</p>
|
||
<p id="dli_08_0191__en-us_topic_0060575883_p19209611810">Relationship operators are binary operators. Two compared data types must be of the same type or they must support implicit conversion.</p>
|
||
<p id="dli_08_0191__a2f09e52e54a64f10885980888fb8cfdf"><a href="#dli_08_0191__t16c03594f4e14f9b890b3229307ab86f">Table 1</a> lists all relational operators supported by Flink SQL.</p>
|
||
|
||
<div class="tablenoborder"><a name="dli_08_0191__t16c03594f4e14f9b890b3229307ab86f"></a><a name="t16c03594f4e14f9b890b3229307ab86f"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0191__t16c03594f4e14f9b890b3229307ab86f" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Relational operators</caption><thead align="left"><tr id="dli_08_0191__rc07dc50d385e4a0287267186b5b63e57"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.1.5.2.4.1.1"><p id="dli_08_0191__a0ee4290fcd314b09a5a6d66b0a236b23"><strong id="dli_08_0191__en-us_topic_0093946771_en-us_topic_0053447306_en-us_topic_0039551470_b1241127017346">Operator</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.1.5.2.4.1.2"><p id="dli_08_0191__ad9e7fc1c9e204c1cabf0f10c3e7cf55b"><strong id="dli_08_0191__b147342659142529">Returned Data Type</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="64%" id="mcps1.3.1.5.2.4.1.3"><p id="dli_08_0191__a18ab0502ac5542eca5cf2968f2c7d800"><strong id="dli_08_0191__en-us_topic_0093946771_en-us_topic_0053447306_en-us_topic_0039551470_b6335010717346">Description</strong></p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="dli_08_0191__rd72d22e709cc4d52a1092a3feaf6de3d"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__acb21d1d3e69945569716443cff6dff06">A = B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p557514232513">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__aad9ebcc4c9db4bbb86e24b96be492c70">If A is equal to B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b337937512348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b518091732165021">FALSE</strong> is returned. This operator is used for value assignment.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rff79c33cc7a84d66a9915fed77e5ad70"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a1d31b6c1fbde4fb69ef98030571da1ed">A <> B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p15751239511">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p55751236517">If A is not equal to B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b5601327812348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b1845230488165117">FALSE</strong> is returned. If A or B is <strong id="dli_08_0191__en-us_topic_0093946932_b1034684888165127">NULL</strong>, then <strong id="dli_08_0191__en-us_topic_0093946932_b810305883165127">NULL</strong> is returned. This operator follows the standard SQL syntax.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r3f096306f8b94a3b9bd265890082339f"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__ac43b32e310c64623ac15a78464b8cd7b">A < B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a45e360804471497aa383f120f6f60184">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p857662318515">If A is less than B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b1908370312348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b1370698237165156">FALSE</strong> is returned. If A or B is <strong id="dli_08_0191__en-us_topic_0093946932_b62237550716522">NULL</strong>, then <strong id="dli_08_0191__en-us_topic_0093946932_b144980965616522">NULL</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r57da6dfcb9f946bbb34907bb0b59a1cc"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__ab4c92e831b0a49bb9665f35643e9e1c8">A <= B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p357611238516">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p05764231511">If A is less than or equal to B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b4341133712348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b684794616165222">FALSE</strong> is returned. If A or B is <strong id="dli_08_0191__b167115901">NULL</strong>, then <strong id="dli_08_0191__b2014144142">NULL</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r9169f1e4af0a4e57b169e4c114bcb4bd"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a41f9ba786d8b483799c152fed36d46ae">A > B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__ae863378f6d424a2a8765b48bef3c3996">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a402c2010c4444983a373a3a0e84bc009">If A is greater than B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b1894037012348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b2128325832165235">FALSE</strong> is returned. If A or B is <strong id="dli_08_0191__b1575835598">NULL</strong>, then <strong id="dli_08_0191__b1636370070">NULL</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r801afd4aca244845950acc3c58e4f99c"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a5e555450e39144c58d96f9cb0cd2b1fd">A >= B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__ad9371dca65fa4c2c8b7d8dbc03900b78">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__afd9673fea8f9422d86fd884829e8daf5">If A is greater than or equal to B, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b71319312348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b680638318165258">FALSE</strong> is returned. If A or B is <strong id="dli_08_0191__b971547625">NULL</strong>, then <strong id="dli_08_0191__b1331626172">NULL</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r84f216f5c94a4356872678c7414b0f43"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a6b3d2cfe3b0e400086d2dfb57dab9111">A IS NULL</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a33567d71c3fb42caa4433a83e2587a51">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a484e575324da43f0958d5e45c6e3f4d0">If A is <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b6695247112348">NULL</strong>, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b5631776612348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b1171993385165354">FALSE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rf1bc8789e59349c88bd2f9271ab4afda"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a770c15b9ae5d47f7be5887a984c1985d">A IS NOT NULL</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a494b498d368b44a3acb2bb2b5f18d2a9">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a82e6b54364be4dee8128683ea6a14a49">If A is not <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b2264308112348">NULL</strong>, then <strong id="dli_08_0191__en-us_topic_0093946932_en-us_topic_0053447305_en-us_topic_0039551486_b1886871712348">TRUE</strong> is returned. Otherwise, <strong id="dli_08_0191__en-us_topic_0093946932_b1690563583165436">FALSE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r691feb86a99d4f8ca8717a4a8e4b97db"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575883_p219991119220">A IS DISTINCT FROM B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p61981111226">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__aeb7fa934a1ba4518980c5b39d871ed01">If A is not equal to B, <strong id="dli_08_0191__b842352706143642">TRUE</strong> is returned. <strong id="dli_08_0191__b842352706143645">NULL</strong> indicates A equals B.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r2d4f9d8d31dc4b689227cfeb375e13f7"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a17177705f90a41f0ac6cd398c92610cb">A IS NOT DISTINCT FROM B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p419621142220">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p619510114220">If A is equal to B, <strong id="dli_08_0191__b1017637850">TRUE</strong> is returned. <strong id="dli_08_0191__b3402362">NULL</strong> indicates A equals B.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__raa74c26b03a84364a1f63e6628211c9e"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a457536264ed442de8a2f5e19665ebb24">A BETWEEN [ASYMMETRIC | SYMMETRIC] B AND C</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a051e8395754c4c67b801de77d4f3dd38">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p161925118227">If A is greater than or equal to B but less than or equal to C, <strong id="dli_08_0191__b842352706143723">TRUE</strong> is returned.</p>
|
||
<ul id="dli_08_0191__ul735101716819"><li id="dli_08_0191__li44881119183">ASYMMETRIC: indicates that B and C are location-related.<p id="dli_08_0191__p68806122313"><a name="dli_08_0191__li44881119183"></a><a name="li44881119183"></a>For example, "A BETWEEN ASYMMETRIC B AND C" is equivalent to "A BETWEEN B AND C".</p>
|
||
</li><li id="dli_08_0191__li1357179817">SYMMETRIC: indicates that B and C are not location-related.<p id="dli_08_0191__p185363313816"><a name="dli_08_0191__li1357179817"></a><a name="li1357179817"></a>For example, "A BETWEEN SYMMETRIC B AND C" is equivalent to "A BETWEEN B AND C) OR (A BETWEEN C AND B".</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rfc3f6e47b85d42c997c6935a33d9d3aa"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a0edf25fa62f54529a2c10ca1e28632cb">A NOT BETWEEN B AND C</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__ace0010a88eb745b289f405829d015105">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a68d8de87902a4901b76934c6b5a2d4fe">If A is less than B or greater than C, <strong id="dli_08_0191__b84235270614399">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r33c7340c758d40f3a18f2744e687da40"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a451adcbe23f9410aa345221a4411acf8">A LIKE B [ ESCAPE C ]</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p578913717362">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a5392d7bf2c5c4f2986008a9e4a24fcaf">If A matches pattern B, <strong id="dli_08_0191__b842352706143932">TRUE</strong> is returned. The escape character C can be defined as required.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r9a06fbefc0be4d8cb30d83ab9c25e37e"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__ab66ee7f903b244c0a32055f4f4ece9bd">A NOT LIKE B [ ESCAPE C ]</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a528a7ea5612949eba8f4d892f7826f48">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575883_p978413783619">If A does not match pattern B, <strong id="dli_08_0191__b177348050">TRUE</strong> is returned. The escape character C can be defined as required.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rc479b7e0ba1f46659736db6f7673eb70"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a4a6909b2585e40baa284f173bdbcc885">A SIMILAR TO B [ ESCAPE C ]</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a5ea9a288c19546ae8ca447159a74207a">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__aa04f3cd785574e86938ea12985798eac">If A matches regular expression B, <strong id="dli_08_0191__b1192222435">TRUE</strong> is returned. The escape character C can be defined as required.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r3d65f3aca94948818a5ccda32de2cb89"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575883_p378083733614">A NOT SIMILAR TO B [ ESCAPE C ]</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__a93c18d7cdbe94462a2252c21c2fbe29b">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a5b91b68334a24941a3a81c0c3a7f0f63">If A does not match regular expression B, <strong id="dli_08_0191__b1633065928">TRUE</strong> is returned. The escape character C can be defined as required.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r309a232ef09f4f15a1cbcccd8aea80a1"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__aa629fbcf56fe441e9ebca082aa575c38">value IN (value [, value]* )</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__ac0e2aa975fa84750b0479c9bddb4a292">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__a900c00fc677548b99145c09698640af7">If the value is equal to any value in the list, <strong id="dli_08_0191__b842352706144057">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rb4e78c16b3864122a3161313e0899484"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.1 "><p id="dli_08_0191__a065f15afba744d0ea6ab5c2acd1d4652">value NOT IN (value [, value]* )</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.5.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575883_p252141415217">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="64%" headers="mcps1.3.1.5.2.4.1.3 "><p id="dli_08_0191__afbb00856846e4594a89ef4250e87c873">If the value is not equal to any value in the list, <strong id="dli_08_0191__b2033774112">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="note" id="dli_08_0191__note1298112914421"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dli_08_0191__u272a5563d86b40dfb9da0139f5cec835"><li id="dli_08_0191__la675c09a226d40d1a84d790a1966426d">Values of the double, real, and float types may be different in precision. The equal sign (<span class="parmname" id="dli_08_0191__parmname1200387235114232"><b>=</b></span>) is not recommended for comparing two values of the double type. You are advised to obtain the absolute value by subtracting these two values of the double type and determine whether they are the same based on the absolute value. If the absolute value is small enough, the two values of the double data type are regarded equal. For example:<pre class="screen" id="dli_08_0191__s03cbcd5c5d7e463aaecf73ac2ff5a820">abs(0.9999999999 - 1.0000000000) < 0.000000001 //The precision decimal places of 0.9999999999 and 1.0000000000 are 10, while the precision decimal place of 0.000000001 is 9. Therefore, 0.9999999999 can be regarded equal to 1.0000000000.</pre>
|
||
</li></ul>
|
||
<ul id="dli_08_0191__ul8541047154219"><li id="dli_08_0191__l5334b57503584abba1cbf6dcfcca0221">Comparison between data of the numeric type and strings is allowed. During comparison using relational operators, including >, <, ≤, and ≥, data of the string type is converted to numeric type by default. No characters other than numeric characters are allowed.</li><li id="dli_08_0191__li135424744214">Strings can be compared using relational operators.</li></ul>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="dli_08_0191__section1269105694411"><h4 class="sectiontitle">Logical Operators</h4><p id="dli_08_0191__a21b8abd368d24216ac7f6a96e409e3d2">Common logical operators are AND, OR, and NOT. Their priority order is NOT > AND > OR.</p>
|
||
<p id="dli_08_0191__a462a9e9dbfad40b681fd85480ab20821"><a href="#dli_08_0191__t3f78edfe9a364a4ab8775083055e6b82">Table 2</a> lists the calculation rules. A and B indicate logical expressions.</p>
|
||
|
||
<div class="tablenoborder"><a name="dli_08_0191__t3f78edfe9a364a4ab8775083055e6b82"></a><a name="t3f78edfe9a364a4ab8775083055e6b82"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0191__t3f78edfe9a364a4ab8775083055e6b82" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Logical operators</caption><thead align="left"><tr id="dli_08_0191__r513e3abee6ac487c8900a3a0008f76d7"><th align="left" class="cellrowborder" valign="top" width="14.29%" id="mcps1.3.2.4.2.4.1.1"><p id="dli_08_0191__en-us_topic_0060575884_p107591934512"><strong id="dli_08_0191__b1479842599">Operator</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.4.2.4.1.2"><p id="dli_08_0191__en-us_topic_0060575884_p87592934510"><strong id="dli_08_0191__en-us_topic_0093946771_en-us_topic_0053447306_en-us_topic_0039551470_b5522847617346">Result Type</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="68.36%" id="mcps1.3.2.4.2.4.1.3"><p id="dli_08_0191__en-us_topic_0060575884_p775920944512"><strong id="dli_08_0191__b1221052462">Description</strong></p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="dli_08_0191__r9d22c663a5834f87a57cd6c21189d9e8"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__ab86cbc0c4eec404c864d6796726ebde8">A OR B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p17759295458">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p47592093456">If A or B is TRUE, <strong id="dli_08_0191__b84235270615212">TRUE</strong> is returned. Three-valued logic is supported.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r409118833769402bb84c2cc684131fb8"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p375917912452">A AND B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p67599994518">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p27599944518">If both A and B are TRUE, <strong id="dli_08_0191__b1245553287">TRUE</strong> is returned. Three-valued logic is supported.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r1f453864244d44daa10cac1f2b41d1e1"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__aa5fcc2707d5f4f82bb3d4a21adc0856f">NOT A</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__ad3ad435fcd4b4e599880bd8caa5d0843">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p137591913455">If A is not TRUE, <strong id="dli_08_0191__b84306023215328">TRUE</strong> is returned. If A is UNKNOWN, <strong id="dli_08_0191__b207228119115334">UNKNOWN</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575884_row2786253526"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p57863538213">A IS FALSE</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p278695310219">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p167866539217">If A is TRUE, <strong id="dli_08_0191__b78015860">TRUE</strong> is returned. If A is UNKNOWN, <strong id="dli_08_0191__b1871206887">FALSE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575884_row9786453327"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p137869531827">A IS NOT FALSE</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p27861153125">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p13786853123">If A is not FALSE, <strong id="dli_08_0191__b519152092">TRUE</strong> is returned. If A is UNKNOWN, <strong id="dli_08_0191__b611322411">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__ra6d4a744fc2149539de6b09fea5ab543"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p278611531827">A IS TRUE</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__a8ba072dbd0db4dc78e951e284c606f77">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p078675319220">If A is TRUE, <strong id="dli_08_0191__b1644145249">TRUE</strong> is returned. If A is UNKNOWN, <strong id="dli_08_0191__b1738231927">FALSE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r822b077ababf41daa562d8efb6491b78"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p01168194411">A IS NOT TRUE</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p21162193418">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__ab098672e119148acafe16b8fef194ece">If A is not TRUE, <strong id="dli_08_0191__b886390826">TRUE</strong> is returned. If A is UNKNOWN, <strong id="dli_08_0191__b377974411">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r1b3f92c1a8ac4b3885a3bf2f894f1ee6"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p511619191842">A IS UNKNOWN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575884_p16116619848">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p31167198413">If A is UNKNOWN, <strong id="dli_08_0191__b84235270615511">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rc4fa05ac89ad4de385cd441445783e04"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.4.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575884_p171162192041">A IS NOT UNKNOWN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="dli_08_0191__acd06d6807e1f413c99b4465ffba6ac50">BOOLEAN</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="68.36%" headers="mcps1.3.2.4.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575884_p7117519944">If A is not UNKNOWN, <strong id="dli_08_0191__b881244604">TRUE</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="note" id="dli_08_0191__note19524548164314"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_08_0191__p152516484436">Only data of the Boolean type can be used for calculation using logical operators. Implicit type conversion is not supported.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="dli_08_0191__section75435172463"><h4 class="sectiontitle">Arithmetic Operators</h4><p id="dli_08_0191__en-us_topic_0060575885_p512365016195">Arithmetic operators include binary operators and unary operators, for all of which, the returned results are of the numeric type. <a href="#dli_08_0191__t5788dd0bf9554fa599615d5d6ef50bd0">Table 3</a> lists arithmetic operators supported by Flink SQL.</p>
|
||
|
||
<div class="tablenoborder"><a name="dli_08_0191__t5788dd0bf9554fa599615d5d6ef50bd0"></a><a name="t5788dd0bf9554fa599615d5d6ef50bd0"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_08_0191__t5788dd0bf9554fa599615d5d6ef50bd0" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Arithmetic operators</caption><thead align="left"><tr id="dli_08_0191__r17f53737d83f42dd91e11b05c5ef9392"><th align="left" class="cellrowborder" valign="top" width="10.620000000000001%" id="mcps1.3.3.3.2.4.1.1"><p id="dli_08_0191__a46e572022abb44db90a6f9c5cba9d1c8"><strong id="dli_08_0191__b1271155567">Operator</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="19.71%" id="mcps1.3.3.3.2.4.1.2"><p id="dli_08_0191__aa8ee8dde180e45b796373c2e373be486"><strong id="dli_08_0191__b1867653514">Result Type</strong></p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="69.67%" id="mcps1.3.3.3.2.4.1.3"><p id="dli_08_0191__en-us_topic_0060575885_p412325091918"><strong id="dli_08_0191__b1589727262">Description</strong></p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="dli_08_0191__rd96d3136a53543528d45abdf96462414"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a0a321b8ba44942148d6c2ac491fd81a1">+ numeric</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a60bd968c08a4485088d6bbe4d94b0a17">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a4334d8dede0b43d88a10cdf076f28a37">Returns numbers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r0a7cdb128f944066a29ff0d903892175"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a408f5129f6fb4bc6a92e6747b4066f07">- numeric</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__ab1da186a7bed4370afb6c42004267e79">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__ad8dba2d6e0d04c879af1ffca48e578ae">Returns negative numbers.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r0373068c718841758c0bb91fc8e785a0"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a91050ee00fef4af58eae218da2d3217b">A + B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__ae1751e150102479cb81b3ba078193bdd">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p71238502199">A plus B. The result type is associated with the operation data type. For example, if floating-point number is added to an integer, the result will be a floating-point number.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rd113c20b1a164daaaa5909ba7967d599"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p912375031912">A - B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a5848520856f041dab54c27e199dfb565">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a74ccc9dbc4d04d18b55d8476a33811c6">A minus B. The result type is associated with the operation data type.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__refeba9f4ead441b6bb8f62c3fddd7477"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a464e74814081472ba8960f97b369ba69">A * B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p812365051919">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a775d9e2640a1451f818270dfd1e27a2d">Multiply A and B. The result type is associated with the operation data type.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__ra5c288930452472a9c82cb02aeae3e78"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a691fe3f7d0ac4c7abe41f88259215575">A / B</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a0c58ac8730584858af483b3746d89a51">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p912455061911">Divide A by B. The result is a number of the double type (double-precision number).</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__ra5e716b7b3b04f2faf6d8d23cea57a85"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a71a2d664489a4906bb02df268601de7c">POWER(A, B)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a10e4991a363841f09e21bb98253a948a">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a9a84ec01590840ee94979a3b31474f7b">Returns the value of A raised to the power B.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r32bec37757b44cd3a13ef7ac88a4d613"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__af4c0d2cb519e48d5ac1b1b88c8f6fa6f">ABS(numeric)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__ac312da034a0440d2819a5a556238f29f">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a84ef4817ed4b48a8800b0e66db4b1b06">Returns the absolute value of a specified value.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rc8a151cbf9664cfc9e1b56b509b5dd78"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a018c371e082a457d9cec7e1d8517b5e1">MOD(A, B)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a2c0155480b10465dac6d8f756f244521">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p125762535284">Returns the remainder (modulus) of A divided by B. A negative value is returned only when A is a negative value.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r19e91f04aaff4f9fbea75ebe462f9806"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__ae20b6e09b0c5427394f858eb5bfaa786">SQRT(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p657695332812">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__add5dfd9537734be2bebe2963e327ead5">Returns the square root of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r4eac74693ac5401fb1391604b6e047df"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p191385115399">LN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p18130517391">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p3133513396">Returns the nature logarithm of A (base e).</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r2e32804b55db4009a86288134dc8ebcf"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p513205111394">LOG10(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p41395103910">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__aeac7417f50ab4b66bc7690af06b5f68c">Returns the base 10 logarithms of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r868c97b04fc9410fa2a20a83a02c183d"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p413195163919">EXP(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__acee0fe99c03743e7bad46948d0939235">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p435811119324">Return the value of e raised to the power of <strong id="dli_08_0191__en-us_topic_0093946856_b84235270610252">a</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r059e4de339474830b760481bf7e344e5"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__aeb9908a0f7cc43d38273f3972051dfbf">CEIL(A)</p>
|
||
<p id="dli_08_0191__en-us_topic_0060575885_p154388581455">CEILING(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a7dec9cb802ff4b6db7f632991601dbf4">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a122d9472b04a4161b02b0d2be79f831d">Return the smallest integer that is greater than or equal to <strong id="dli_08_0191__en-us_topic_0093946856_b8423527061023">a</strong>. For example: ceil(21.2) = 22.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rb3b4aac4b0364440a32dd626a3d3594c"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p65769554612">FLOOR(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p057611544619">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__af5bf9d2fe890424d82cd62ecd53315cc">Return the largest integer that is less than or equal to <strong id="dli_08_0191__en-us_topic_0093946856_b84235270610139">a</strong>. For example: floor(21.2) = 21.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__rc90b798f1c9c42ecba7f086caf8d4fab"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a1660501a843340b99b8725036dbf152c">SIN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p095216387012">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p185772517463">Returns the sine value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row143425016"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p143321705">COS(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p174052394014">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p10322807">Returns the cosine value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row83821004"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p103122305">TAN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a62ce5a0fbfb34f38b16f3df56a3a4703">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p1038216011">Returns the tangent value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row63142007"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p43182408">COT(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p766074011016">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p1241020015">Returns the cotangent value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row13442602"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p1841322020">ASIN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p618054112017">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p1842028015">Returns the arc sine value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row8482407"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p541125016">ACOS(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p19183411409">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p134122702">Returns the arc cosine value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row1041621803"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p15432108">ATAN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a897df86011cd423ca4167d133bcec726">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p141021803">Returns the arc tangent value of A.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row34152200"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p64132102">DEGREES(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p22711448970">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a9fcef591e771402980da9d00129e27d4">Convert the value of <strong id="dli_08_0191__en-us_topic_0093946856_b84235270610813">a</strong> from radians to degrees.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__en-us_topic_0060575885_row1199798989"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__a8a8ba3056a3c4e81a455cb017847175f">RADIANS(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p69981814820">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a22885eb99f23410f807e2478e351bc78">Convert the value of <strong id="dli_08_0191__en-us_topic_0093946856_b84235270610830">a</strong> from degrees to radians.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r68256be09fe84c77aef5d47411e65ce3"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p5998984818">SIGN(A)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__en-us_topic_0060575885_p16998781285">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__en-us_topic_0060575885_p11998198083">Returns the sign of A. <strong id="dli_08_0191__b2024018500240">1</strong> is returned if A is positive. <strong id="dli_08_0191__b1324005018242">–1</strong> is returned if A is negative. Otherwise, <strong id="dli_08_0191__b924015032417">0</strong> is returned.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r2feb0685ca04407fa2657fa9ceb758c5"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__ab0feb6fa7a684c0aab5af02c2ec8bc29">ROUND(A, d)</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a4143001cbd12412e92f20892d3afe3dd">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__ae767070bdf654de288573cb191ca23d3">Round A to d places right to the decimal point. d is an int type. For example: round(21.263,2) = 21.26.</p>
|
||
</td>
|
||
</tr>
|
||
<tr id="dli_08_0191__r2627acb48fda48adab51a14a81b8be5a"><td class="cellrowborder" valign="top" width="10.620000000000001%" headers="mcps1.3.3.3.2.4.1.1 "><p id="dli_08_0191__en-us_topic_0060575885_p145771511467">PI()</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="19.71%" headers="mcps1.3.3.3.2.4.1.2 "><p id="dli_08_0191__a1539f0da6d734b4987e34d05c9dc3371">All numeric types</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="69.67%" headers="mcps1.3.3.3.2.4.1.3 "><p id="dli_08_0191__a853ee394856f4b8f9f18d21bf3891888">Return the value of <strong id="dli_08_0191__en-us_topic_0093946856_b84235270610956">pi</strong>.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="note" id="dli_08_0191__note125201632124411"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_08_0191__p8520032204417">Data of the string type is not allowed in arithmetic operations.</p>
|
||
</div></div>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_08_0086.html">Built-In Functions</a></div>
|
||
</div>
|
||
</div>
|
||
|