ClickHouse/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql
2019-03-14 04:11:07 +03:00

10 lines
272 B
SQL

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 AS SELECT number+1 AS next_number FROM system.numbers;
SHOW CREATE TABLE test.t;
DROP TABLE test.t;