mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
7 lines
298 B
MySQL
7 lines
298 B
MySQL
|
|
||
|
create table mt (n int, s String) engine=MergeTree order by n;
|
||
|
insert into mt values (1, '');
|
||
|
set allow_nondeterministic_mutations=1;
|
||
|
alter table mt update s = (select toString(groupArray((*,))) from system.zookeeper where path='/') where n=1 settings mutations_sync=2;
|
||
|
select distinct n from mt;
|