mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 21:03:51 +00:00
26 lines
464 B
Plaintext
26 lines
464 B
Plaintext
1
|
|
SELECT `t1.a` AS `tupleElement(t1, 1)`
|
|
FROM t_tuple_element
|
|
a
|
|
SELECT `t1.s` AS `tupleElement(t1, 2)`
|
|
FROM t_tuple_element
|
|
1
|
|
SELECT `t1.a` AS `tupleElement(t1, \'a\')`
|
|
FROM t_tuple_element
|
|
2
|
|
SELECT `t2.1` AS `tupleElement(t2, 1)`
|
|
FROM t_tuple_element
|
|
2
|
|
SELECT `t2.1` AS `tupleElement(t2, 1)`
|
|
FROM t_tuple_element
|
|
1 2
|
|
WITH (1, 2) AS t
|
|
SELECT
|
|
t.1,
|
|
t.2
|
|
1 2
|
|
WITH CAST(\'(1, 2)\', \'Tuple(a UInt32, b UInt32)\') AS t
|
|
SELECT
|
|
t.1,
|
|
tupleElement(t, \'b\')
|