mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
fixes for data_types/special_data_types/nothing.md
This commit is contained in:
parent
a2a808c68a
commit
b81b2e3bfd
@ -2,14 +2,14 @@
|
||||
|
||||
# Nothing
|
||||
|
||||
The only purpose of this data type is to represent [NULL](../../query_language/syntax.md#null-literal), i.e., no value.
|
||||
The only purpose of this data type is to represent cases where value is not expected. So you can't create a `Nothing` type value.
|
||||
|
||||
You can't create a `Nothing` type value, because it is used where a value is not expected. For example, `NULL` is written as `Nullable(Nothing)` ([Nullable](../../data_types/nullable.md#data_type-nullable) is the data type that allows storing `NULL` in tables).
|
||||
For example, literal [NULL](../../query_language/syntax.md#null-literal) has type of `Nullable(Nothing)`. See more about [Nullable](../../data_types/nullable.md#data_type-nullable).
|
||||
|
||||
The `Nothing` type is also used to denote empty arrays:
|
||||
The `Nothing` type can also used to denote empty arrays:
|
||||
|
||||
```bash
|
||||
:) SELECT toTypeName(Array())
|
||||
:) SELECT toTypeName(array())
|
||||
|
||||
SELECT toTypeName([])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user