mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
12 lines
249 B
MySQL
12 lines
249 B
MySQL
|
drop table if exists a;
|
||
|
drop table if exists b;
|
||
|
|
||
|
create table a (i int, j int) engine Log;
|
||
|
create materialized view b engine Log as select countState(*) from a;
|
||
|
|
||
|
insert into a values (1, 2);
|
||
|
select countMerge(*) from b;
|
||
|
|
||
|
drop table b;
|
||
|
drop table a;
|