mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
140 lines
1.6 KiB
Plaintext
140 lines
1.6 KiB
Plaintext
|
INSERT INTO table1 FORMAT Values (1, [1,3], 'fd'), (2, [2,4], 'sd'), (3, [3,5], 'td')
|
||
|
======================================
|
||
|
SELECT a
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
INSERT INTO table1 FORMAT Values (1, [1,3], 'fd'), (2, [2,4], 'sd'), (3, [3,5], 'td');
|
||
|
|
||
|
SELECT b
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
======================================
|
||
|
-- begin
|
||
|
SELECT a
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
-- some insert query
|
||
|
INSERT INTO table1 FORMAT Values (1, [1,3], 'fd'), (2, [2,4], 'sd'), (3, [3,5], 'td');
|
||
|
|
||
|
-- more comments
|
||
|
-- in a row
|
||
|
SELECT b
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
-- end
|
||
|
======================================
|
||
|
SELECT b FROM table1;
|
||
|
|
||
|
SELECT b, c FROM table1;
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM table1
|
||
|
;
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c
|
||
|
FROM
|
||
|
(
|
||
|
SELECT
|
||
|
b,
|
||
|
c
|
||
|
FROM table1
|
||
|
)
|
||
|
;
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM
|
||
|
(
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM table1
|
||
|
)
|
||
|
;
|
||
|
|
||
|
======================================
|
||
|
SELECT b FROM table1;
|
||
|
|
||
|
SELECT b, c FROM table1;
|
||
|
|
||
|
SELECT b, c, d FROM table1;
|
||
|
|
||
|
SELECT b, c, d, e FROM table1;
|
||
|
|
||
|
SELECT b, c, d, e, f FROM table1;
|
||
|
|
||
|
SELECT b, c FROM (SELECT b, c FROM table1);
|
||
|
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM
|
||
|
(
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM table1
|
||
|
)
|
||
|
;
|
||
|
|
||
|
======================================
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM
|
||
|
(
|
||
|
SELECT
|
||
|
b,
|
||
|
c,
|
||
|
d,
|
||
|
e,
|
||
|
f
|
||
|
FROM table1
|
||
|
)
|
||
|
SELECT b, c, d, e, f FROM (SELECT b, c, d, e, f FROM table1)
|
||
|
======================================
|
||
|
BAD_ARGUMENTS
|
||
|
BAD_ARGUMENTS
|