PostgreSQL · Function
unnest
PostgreSQL's unnest function expands array elements into rows. It can also expand multiple arrays together and optionally add row numbers.
Last updated
Syntax
unnest(anyarray) → setof anyelement
unnest(anyarray, anyarray [, ...]) → setof anyelement, anyelement [, ...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
array_aggWITH ORDINALITYROWS FROM