mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
11 lines
444 B
SQL
11 lines
444 B
SQL
DROP DATABASE IF EXISTS some_tests;
|
|
CREATE DATABASE some_tests;
|
|
|
|
create table some_tests.my_table ENGINE = MergeTree(day, (day), 8192) as select today() as day, 'mystring' as str;
|
|
show tables from some_tests;
|
|
create materialized view some_tests.my_materialized_view ENGINE = MergeTree(day, (day), 8192) as select * from some_tests.my_table;
|
|
show tables from some_tests;
|
|
select * from some_tests.my_materialized_view;
|
|
|
|
DROP DATABASE some_tests;
|