mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Create 02013_add_system_table_views.sql
This commit is contained in:
parent
adefa73b73
commit
7f72e51a8f
@ -0,0 +1,8 @@
|
|||||||
|
DROP TABLE IF EXISTS table_views_test;
|
||||||
|
CREATE TABLE table_views_test (a UInt8, s String) ENGINE = MergeTree() ORDER BY a;
|
||||||
|
DROP TABLE IF EXISTS table_views_test_view;
|
||||||
|
CREATE MATERIALIZED VIEW table_views_test_view ENGINE = ReplacingMergeTree() ORDER BY a AS SELECT * FROM table_views_test;
|
||||||
|
SELECT * FROM system.table_views WHERE view_table = 'table_views_test_view';
|
||||||
|
DROP TABLE IF EXISTS table_views_test_view;
|
||||||
|
SELECT * FROM system.table_views WHERE view_table = 'table_views_test_view';
|
||||||
|
DROP TABLE IF EXISTS table_views_test;
|
Loading…
Reference in New Issue
Block a user