mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
19 lines
480 B
MySQL
19 lines
480 B
MySQL
|
|
||
|
drop table if exists t;
|
||
|
drop table if exists mv;
|
||
|
|
||
|
create table t engine=Memory empty; -- { clientError SYNTAX_ERROR }
|
||
|
create table t engine=Memory empty as; -- { clientError SYNTAX_ERROR }
|
||
|
create table t engine=Memory as; -- { clientError SYNTAX_ERROR }
|
||
|
create table t engine=Memory empty as select 1;
|
||
|
|
||
|
show create table t;
|
||
|
select count() from t;
|
||
|
|
||
|
create materialized view mv engine=Memory empty as select 1;
|
||
|
show create mv;
|
||
|
select count() from mv;
|
||
|
|
||
|
drop table t;
|
||
|
drop table mv;
|