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>
55 lines
4.9 KiB
HTML
55 lines
4.9 KiB
HTML
<a name="EN-US_TOPIC_0000001098830674"></a><a name="EN-US_TOPIC_0000001098830674"></a>
|
|
|
|
<h1 class="topictitle1">Comparison Operators</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001098830674__a9c6c7cce8cd94ddfa841760fbe5c9c25">Comparison operators are available for all data types and return Boolean values.</p>
|
|
<p id="EN-US_TOPIC_0000001098830674__a4853d390f436435db337926e772f525d">All comparison operators are binary operators. Only data types that are the same or can be implicitly converted can be compared using comparison operators.</p>
|
|
<p id="EN-US_TOPIC_0000001098830674__a64a52c4b65464eadab10b3492269af27"><a href="#EN-US_TOPIC_0000001098830674__t6a435675959f484a9b0194cd232c098c">Table 1</a> describes comparison operators provided by <span id="EN-US_TOPIC_0000001098830674__text1782914086">GaussDB(DWS)</span>.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001098830674__t6a435675959f484a9b0194cd232c098c"></a><a name="t6a435675959f484a9b0194cd232c098c"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098830674__t6a435675959f484a9b0194cd232c098c" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Comparison operators</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098830674__rec9f8978ed334f3e9cfb6de191ca1119"><th align="left" class="cellrowborder" valign="top" width="35.870000000000005%" id="mcps1.3.4.2.3.1.1"><p id="EN-US_TOPIC_0000001098830674__aaba4bc73fb2b48ccb0fd534fd2b629c6">Operators</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="64.13%" id="mcps1.3.4.2.3.1.2"><p id="EN-US_TOPIC_0000001098830674__a36d880508c82408d94464ec430807129">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098830674__r22bbfa472f1d41ca8205c7ba6eb9f348"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__a407510753dea45ff80369600807afdcf"><</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__a25e392972deb4362a7d3da0c0e524e37">Less than</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098830674__r7e34fc3a4ff24a8db768344b375ca6ac"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__a9726ca99f71f4fe2a65f45481a01561a">></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__a69b5e55d4a504294946b2ae362c0042b">Greater than</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098830674__r1c73d5ce489241f79f2dec3df53bfdcb"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__ac55a037842b246d0846c54578baf0958"><=</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__adc60b8b123b64346a9d9106296fe7472">Less than or equal to</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098830674__r05665462b39e4b6f8ad0c03ee78bbe5c"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__acb0376f1e10546efb280016401108ea8">>=</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__af526484af8e1487da333eac6f629dd81">Greater than or equal to</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098830674__rc9ccaef074b441669a290d584287af98"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__a57b1a13c089c4223a9ef2776b5701ded">=</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__a2ad9644b67df4c80a462617228b78d77">Equality</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098830674__r979b99bd358646ba840950d4626de994"><td class="cellrowborder" valign="top" width="35.870000000000005%" headers="mcps1.3.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001098830674__a066b664131b243e397c1b6b1d58934f4"><> or !=</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.13%" headers="mcps1.3.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001098830674__aedb9a53aca9a438aaff16a643d098c79">Inequality</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001098830674__a4fd056176ff44430bf87fba4d8444ea3">Comparison operators are available for all relevant data types. All comparison operators are binary operators that returned values of Boolean type. Expressions like <strong id="EN-US_TOPIC_0000001098830674__b842352706162447">1 < 2 < 3</strong> are invalid. (Because there is no comparison operator to compare a Boolean value with <strong id="EN-US_TOPIC_0000001098830674__b84235270616555">3</strong>.)</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0027.html">Functions and Operators</a></div>
|
|
</div>
|
|
</div>
|
|
|