mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
63 lines
2.7 KiB
SQL
63 lines
2.7 KiB
SQL
DROP TABLE IF EXISTS buffer_00126;
|
|
DROP TABLE IF EXISTS null_sink_00126;
|
|
|
|
CREATE TABLE null_sink_00126 (a UInt8, b String, c Array(UInt32)) ENGINE = Null;
|
|
CREATE TABLE buffer_00126 (a UInt8, b String, c Array(UInt32)) ENGINE = Buffer(currentDatabase(), null_sink_00126, 1, 1000, 1000, 1000, 1000, 1000000, 1000000);
|
|
|
|
INSERT INTO buffer_00126 VALUES (1, '2', [3]);
|
|
|
|
SELECT a, b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c FROM buffer_00126 ORDER BY a, b, c;
|
|
|
|
INSERT INTO buffer_00126 (c, b, a) VALUES ([7], '8', 9);
|
|
|
|
SELECT a, b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c FROM buffer_00126 ORDER BY a, b, c;
|
|
|
|
INSERT INTO buffer_00126 (a, c) VALUES (11, [33]);
|
|
|
|
SELECT a, b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a, c FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b, a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c, b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT a FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT b FROM buffer_00126 ORDER BY a, b, c;
|
|
SELECT c FROM buffer_00126 ORDER BY a, b, c;
|
|
|
|
DROP TABLE buffer_00126;
|
|
DROP TABLE null_sink_00126;
|