mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
11 lines
236 B
MySQL
11 lines
236 B
MySQL
|
drop table if exists t;
|
||
|
create table t (n Int32, s String) engine=MergeTree order by n;
|
||
|
|
||
|
insert into t select number, 'hello, world!' from numbers (5);
|
||
|
|
||
|
select array_agg(s) from t;
|
||
|
|
||
|
select aRray_Agg(s) from t group by n;
|
||
|
|
||
|
drop table t;
|