This commit is contained in:
Alexey Milovidov 2019-03-14 04:11:07 +03:00
parent f76a9ba4c0
commit 84420eefef
2 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,2 @@
CREATE VIEW test.t ( number UInt64) AS SELECT number FROM system.numbers
CREATE VIEW test.t ( next_number UInt64) AS SELECT number + 1 FROM system.numbers
CREATE VIEW test.t ( next_number UInt64) AS SELECT number + 1 AS next_number FROM system.numbers

View File

@ -2,5 +2,8 @@ DROP TABLE IF EXISTS test.t;
CREATE OR REPLACE VIEW test.t (number UInt64) AS SELECT number FROM system.numbers;
SHOW CREATE TABLE test.t;
CREATE OR REPLACE VIEW test.t (next_number UInt64) AS SELECT number+1 FROM system.numbers;
CREATE OR REPLACE VIEW test.t AS SELECT number+1 AS next_number FROM system.numbers;
SHOW CREATE TABLE test.t;
DROP TABLE test.t;