Skip to content

Commit

Permalink
fix: operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasen-Zhang committed Jan 24, 2025
1 parent 843e66f commit 4898364
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: Comparison Operators
---

| Operator | Description | Example | Result |
| --------------- | ------------------------------------------- | --------------------------- | ------ |
| **=** | a is equal to b | **2 = 2** | TRUE |
| **!=** | a is not equal to b | **2 != 3** | TRUE |
| `**<\>**` | a is not equal to b | `**2 <\> 2**` | FALSE |
| **>** | a is greater than b | **2 > 3** | FALSE |
| **>=** | a is greater than or equal to b | **4 >= NULL** | NULL |
| `**<**` | a is less than b | `**2 < 3**` | TRUE |
| `**<=**` | a is less than or equal to b | `**2 <= 3**` | TRUE |
| **IS NULL** | TRUE if expression is NULL, FALSE otherwise | **(4 >= NULL) IS NULL** | TRUE |
| **IS NOT NULL** | FALSE if expression is NULL, TRUE otherwise | **(4 >= NULL) IS NOT NULL** | FALSE |
| Operator | Description | Example | Result |
| ------------- | ------------------------------------------- | ------------------------- | ------ |
| `=` | a is equal to b | `2 = 2` | TRUE |
| `!=` | a is not equal to b | `2 != 3` | TRUE |
| `<\>` | a is not equal to b | `2 <\> 2` | FALSE |
| `>` | a is greater than b | `2 > 3` | FALSE |
| `>=` | a is greater than or equal to b | `4 >= NULL` | NULL |
| `<` | a is less than b | `2 < 3` | TRUE |
| `<=` | a is less than or equal to b | `2 <= 3` | TRUE |
| `IS NULL` | TRUE if expression is NULL, FALSE otherwise | `(4 >= NULL) IS NULL` | TRUE |
| `IS NOT NULL` | FALSE if expression is NULL, TRUE otherwise | `(4 >= NULL) IS NOT NULL` | FALSE |

0 comments on commit 4898364

Please sign in to comment.