Some fixups

This commit is contained in:
Robert Schulze 2024-03-13 13:55:32 +00:00
parent 0353121dcc
commit 4f2be00352
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 7 additions and 7 deletions

View File

@ -10,11 +10,13 @@ sidebar_label: Nullable
Returns whether the argument is [NULL](../../sql-reference/syntax.md#null).
See also operator [`IS NULL`](../operators/index.md#is_null).
``` sql
isNull(x)
```
Alias: `IS NULL`.
Alias: `ISNULL`
**Arguments**
@ -54,12 +56,12 @@ Result:
Returns whether the argument is not [NULL](../../sql-reference/syntax.md#null-literal).
See also operator [`IS NOT NULL`](../operators/index.md#is_not_null).
``` sql
isNotNull(x)
```
Alias: `IS NOT NULL`.
**Arguments:**
- `x` — A value of non-compound data type.
@ -102,8 +104,6 @@ Returns whether the argument is 0 (zero) or [NULL](../../sql-reference/syntax.md
isZeroOrNull(x)
```
Alias: `x = 0 OR x IS NULL`.
**Arguments:**
- `x` — A value of non-compound data type.

View File

@ -353,7 +353,7 @@ For efficiency, the `and` and `or` functions accept any number of arguments. The
ClickHouse supports the `IS NULL` and `IS NOT NULL` operators.
### IS NULL
### IS NULL {#is_null}
- For [Nullable](../../sql-reference/data-types/nullable.md) type values, the `IS NULL` operator returns:
- `1`, if the value is `NULL`.
@ -374,7 +374,7 @@ SELECT x+100 FROM t_null WHERE y IS NULL
└──────────────┘
```
### IS NOT NULL
### IS NOT NULL {#is_not_null}
- For [Nullable](../../sql-reference/data-types/nullable.md) type values, the `IS NOT NULL` operator returns:
- `0`, if the value is `NULL`.