- Overview
- Data types
- Commands
- Functions
- Overview
- Aggregate
- Conditional expression
- Conversion
- Date and time
- Numeric
- String
- Semi-structured data
- Window
- System
On this page
array_agg
Collects input values into an array.
Syntax
array_agg( <expr> )
Returns
Returns array.
Examples
VALUES ('info'), ('warn'), ('error')
AGGREGATE array_agg($0);