fixes for tuple.md

This commit is contained in:
Ivan Blinkov 2018-09-06 20:01:06 +03:00
parent b81b2e3bfd
commit 196fb86fca

View File

@ -2,7 +2,7 @@
# Tuple(T1, T2, ...)
A tuple of elements of any [type](index.md#data_types). There can be one or more types of elements in a tuple.
A tuple of elements, each having an individual [type](index.md#data_types).
You can't store tuples in tables (other than Memory tables). They are used for temporary column grouping. Columns can be grouped when an IN expression is used in a query, and for specifying certain formal parameters of lambda functions. For more information, see the sections [IN operators](../query_language/select.md#in_operators) and [Higher order functions](../query_language/functions/higher_order_functions.md#higher_order_functions).
@ -10,7 +10,7 @@ Tuples can be the result of a query. In this case, for text formats other than J
## Creating a tuple
You can use a function to create a tuple
You can use a function to create a tuple:
```
tuple(T1, T2, ...)
@ -39,7 +39,7 @@ When creating a tuple on the fly, ClickHouse automatically detects the type of e
Example of automatic data type detection:
```
SELECT tuple(1,NULL) AS x, toTypeName(x)
SELECT tuple(1, NULL) AS x, toTypeName(x)
SELECT
(1, NULL) AS x,