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

10 lines
242 B
MySQL
Raw Normal View History

2019-06-07 15:41:24 +00:00
DROP TABLE IF EXISTS t;
2019-03-11 16:50:31 +00:00
2019-06-07 15:41:24 +00:00
CREATE OR REPLACE VIEW t (number UInt64) AS SELECT number FROM system.numbers;
SHOW CREATE TABLE t;
2019-03-14 01:11:07 +00:00
2019-06-07 15:41:24 +00:00
CREATE OR REPLACE VIEW t AS SELECT number+1 AS next_number FROM system.numbers;
SHOW CREATE TABLE t;
2019-03-14 01:11:07 +00:00
2019-06-07 15:41:24 +00:00
DROP TABLE t;