ClickHouse/dbms/tests/queries/0_stateless/00952_live_view_create.sql
Vitaliy Zakaznikov fc21200bdd * Started to add LIVE VIEW table tests
* Added uexpect.py module
* Fixed support for CREATE TEMPORARY LIVE VIEW
2019-06-03 15:53:11 -04:00

10 lines
213 B
SQL

DROP TABLE IF EXISTS test.mt;
CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple();
CREATE LIVE VIEW test.lv AS SELECT * FROM test.mt;
SHOW TABLES LIKE 'lv';
DROP TABLE test.lv;
DROP TABLE test.mt;