mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
142 lines
1.6 KiB
Plaintext
142 lines
1.6 KiB
Plaintext
INSERT INTO table1 VALUES (1, [1,3], 'fd'), (2, [2,4], 'sd'), (3, [3,5], 'td')
|
|
======================================
|
|
SELECT a
|
|
FROM table1
|
|
;
|
|
|
|
INSERT INTO table1 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 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)
|
|
======================================
|
|
Option 'max_line_length' must be less than 256.
|
|
2
|
|
Options 'oneline' and 'max_line_length' are mutually exclusive.
|
|
2
|