ClickHouse/tests/queries/0_stateless/02813_array_agg.sql

11 lines
236 B
MySQL
Raw Normal View History

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;