mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
11 lines
236 B
SQL
11 lines
236 B
SQL
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;
|