mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
37 lines
1.1 KiB
MySQL
37 lines
1.1 KiB
MySQL
|
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 test.nested;
|
||
|
CREATE TABLE test.nested (nest Nested(a UInt8, b String)) ENGINE = Memory;
|
||
|
INSERT INTO test.nested VALUES ([1, 2], ['hello', 'world']);
|
||
|
SELECT nest.a, nest.b, nested.`nest`.`a`, test.nested.nest.b, t.nest.a, t.nest.b, t.* FROM test.nested AS t;
|
||
|
DROP TABLE test.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;
|