ClickHouse/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql

7 lines
257 B
MySQL
Raw Normal View History

2019-03-11 16:50:31 +00:00
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;
SHOW CREATE TABLE test.t;