|
2 | 2 | title: Comparison Operators |
3 | 3 | --- |
4 | 4 |
|
5 | | -| Operator | Description | Example | Result | |
6 | | -| --------------- | ------------------------------------------- | --------------------------- | ------ | |
7 | | -| **=** | a is equal to b | **2 = 2** | TRUE | |
8 | | -| **!=** | a is not equal to b | **2 != 3** | TRUE | |
9 | | -| `**<\>**` | a is not equal to b | `**2 <\> 2**` | FALSE | |
10 | | -| **>** | a is greater than b | **2 > 3** | FALSE | |
11 | | -| **>=** | a is greater than or equal to b | **4 >= NULL** | NULL | |
12 | | -| `**<**` | a is less than b | `**2 < 3**` | TRUE | |
13 | | -| `**<=**` | a is less than or equal to b | `**2 <= 3**` | TRUE | |
14 | | -| **IS NULL** | TRUE if expression is NULL, FALSE otherwise | **(4 >= NULL) IS NULL** | TRUE | |
15 | | -| **IS NOT NULL** | FALSE if expression is NULL, TRUE otherwise | **(4 >= NULL) IS NOT NULL** | FALSE | |
| 5 | +| Operator | Description | Example | Result | |
| 6 | +| ------------- | ------------------------------------------- | ------------------------- | ------ | |
| 7 | +| `=` | a is equal to b | `2 = 2` | TRUE | |
| 8 | +| `!=` | a is not equal to b | `2 != 3` | TRUE | |
| 9 | +| `<\>` | a is not equal to b | `2 <\> 2` | FALSE | |
| 10 | +| `>` | a is greater than b | `2 > 3` | FALSE | |
| 11 | +| `>=` | a is greater than or equal to b | `4 >= NULL` | NULL | |
| 12 | +| `<` | a is less than b | `2 < 3` | TRUE | |
| 13 | +| `<=` | a is less than or equal to b | `2 <= 3` | TRUE | |
| 14 | +| `IS NULL` | TRUE if expression is NULL, FALSE otherwise | `(4 >= NULL) IS NULL` | TRUE | |
| 15 | +| `IS NOT NULL` | FALSE if expression is NULL, TRUE otherwise | `(4 >= NULL) IS NOT NULL` | FALSE | |
0 commit comments