mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
37 lines
1.1 KiB
SQL
37 lines
1.1 KiB
SQL
SELECT dummy FROM system.one;
|
|
SELECT * FROM system.one;
|
|
SELECT `one`.dummy FROM system.one;
|
|
SELECT one.* FROM system.one;
|
|
SELECT system.`one`.dummy FROM system.one;
|
|
SELECT `system`.`one`.* FROM system.one;
|
|
|
|
SELECT `t`.dummy FROM system.one AS t;
|
|
SELECT t.* FROM system.one AS t;
|
|
SELECT t.dummy FROM system.one t;
|
|
SELECT t.* FROM system.one t;
|
|
|
|
SELECT one.dummy FROM system.one one;
|
|
SELECT one.* FROM system.one one;
|
|
|
|
USE system;
|
|
|
|
SELECT `dummy` FROM `one`;
|
|
SELECT * FROM one;
|
|
SELECT one.dummy FROM one;
|
|
SELECT one.* FROM one;
|
|
SELECT system.one.dummy FROM one;
|
|
SELECT system.one.* FROM one;
|
|
SELECT system.one.dummy FROM `one` AS `t`;
|
|
SELECT system.one.* FROM one AS `t`;
|
|
|
|
DROP TABLE IF EXISTS nested;
|
|
CREATE TABLE nested (nest Nested(a UInt8, b String)) ENGINE = Memory;
|
|
INSERT INTO nested VALUES ([1, 2], ['hello', 'world']);
|
|
SELECT nest.a, nest.b, nested.`nest`.`a`, nested.nest.b, t.nest.a, t.nest.b, t.* FROM nested AS t;
|
|
DROP TABLE nested;
|
|
|
|
SELECT number FROM numbers(2);
|
|
SELECT t.number FROM numbers(2) t;
|
|
SELECT x FROM (SELECT 1 AS x);
|
|
SELECT t.x FROM (SELECT 1 AS x) t;
|